-
Notifications
You must be signed in to change notification settings - Fork 9
Description
When using fluentd v1.11-1 and your last plugin version (0.7.0) we are facing an issue when sending data to Log Analytics to be ingested.
Basically, we are sending a JSON like this one:
{
"anonymous_uid":"45645645645645",
"event_date":"2021-05-11T04:00:00",
"country_code":"ZZ",
"country_name":"Unknown",
"web_privacy":"PRIVATE",
"info_level":"PERSONAL",
"timezone":"america/new_york"
}
And we are getting this error from this line https://github.com/yokawasa/fluent-plugin-azure-loganalytics/blob/master/lib/fluent/plugin/out_azure-loganalytics.rb#L98:
2021-05-11 08:39:32 +0000 [fatal]: #3 [loganalyticis_custom_endpoint] Exception occured in posting to DataCollector API: 'undefined method `response' for #<SocketError:0x000055b025a4ee28>
Did you mean? respond_to?', data=> [{"anonymous_uid":"45645645645645", "event_date":"2021-05-11T04:00:00", "country_code":"ZZ", "country_name":"Unknown", "web_privacy":"PRIVATE", "info_level":"PERSONAL", "timezone":"america/new_york"}]
This error happens from time to time, not on every request.
We are also seeing that when an http status code 503
from Log Analytics occurs, instead of going through line 100 (https://github.com/yokawasa/fluent-plugin-azure-loganalytics/blob/master/lib/fluent/plugin/out_azure-loganalytics.rb#L100) is catching the general exception in line 104 (https://github.com/yokawasa/fluent-plugin-azure-loganalytics/blob/master/lib/fluent/plugin/out_azure-loganalytics.rb#L104) as follows:
Exception occured in posting to DataCollector API: '503 Service Unavailable'
Could you take a look?
Thanks!