{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/beats/issues/2183","repository_url":"https://api.github.com/repos/elastic/beats","labels_url":"https://api.github.com/repos/elastic/beats/issues/2183/labels{/name}","comments_url":"https://api.github.com/repos/elastic/beats/issues/2183/comments","events_url":"https://api.github.com/repos/elastic/beats/issues/2183/events","html_url":"https://github.com/elastic/beats/pull/2183","id":169901079,"number":2183,"title":"Log event publishing errors as Err (was Info)","user":{"login":"devenney","id":13288003,"avatar_url":"https://avatars.githubusercontent.com/u/13288003?v=3","gravatar_id":"","url":"https://api.github.com/users/devenney","html_url":"https://github.com/devenney","followers_url":"https://api.github.com/users/devenney/followers","following_url":"https://api.github.com/users/devenney/following{/other_user}","gists_url":"https://api.github.com/users/devenney/gists{/gist_id}","starred_url":"https://api.github.com/users/devenney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devenney/subscriptions","organizations_url":"https://api.github.com/users/devenney/orgs","repos_url":"https://api.github.com/users/devenney/repos","events_url":"https://api.github.com/users/devenney/events{/privacy}","received_events_url":"https://api.github.com/users/devenney/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/beats/labels/discuss","name":"discuss","color":"ffa500"},{"url":"https://api.github.com/repos/elastic/beats/labels/Filebeat","name":"Filebeat","color":"008000"},{"url":"https://api.github.com/repos/elastic/beats/labels/review","name":"review","color":"207de5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-08-08T11:27:28Z","updated_at":"2016-08-09T12:34:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/beats/pulls/2183","html_url":"https://github.com/elastic/beats/pull/2183","diff_url":"https://github.com/elastic/beats/pull/2183.diff","patch_url":"https://github.com/elastic/beats/pull/2183.patch"},"body":"Hi folks!\r\n\r\nToday I ran into an issue regarding the classification of log messages. Our logging fell over and we saw no errors in the Filebeat logs. After further investigation we found that this error was being logged as INFO:\r\n\r\n    2016/08/08 10:56:03.814969 single.go:130: INFO Connecting error publishing events (retrying): Head http://confidential-hostname:9200: dial tcp: lookup confidential-hostname on 10.251.0.2:53: no such host\r\n\r\nThis feels wrong as any event publishing error seems to be a real error. This PR ensures these errors are logged as errors.\r\n\r\n____\r\n\r\nWe also found the following which I have not modified in this PR as I am not sure if it is intentional behaviour:\r\n\r\n    2016/08/08 10:56:20.807266 log.go:80: INFO Read line error: No more bytes\r\n\r\nThis appears to be an issue in `filebeat/harvester/log.go`, lines 67-85. A number of these logging calls appear to be real error cases which I would argue should be logged as such. If this is the case, I'm happy to update this PR to modify that behaviour too."},"comment":{"url":"https://api.github.com/repos/elastic/beats/issues/comments/238538940","html_url":"https://github.com/elastic/beats/pull/2183#issuecomment-238538940","issue_url":"https://api.github.com/repos/elastic/beats/issues/2183","id":238538940,"user":{"login":"tsg","id":101817,"avatar_url":"https://avatars.githubusercontent.com/u/101817?v=3","gravatar_id":"","url":"https://api.github.com/users/tsg","html_url":"https://github.com/tsg","followers_url":"https://api.github.com/users/tsg/followers","following_url":"https://api.github.com/users/tsg/following{/other_user}","gists_url":"https://api.github.com/users/tsg/gists{/gist_id}","starred_url":"https://api.github.com/users/tsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsg/subscriptions","organizations_url":"https://api.github.com/users/tsg/orgs","repos_url":"https://api.github.com/users/tsg/repos","events_url":"https://api.github.com/users/tsg/events{/privacy}","received_events_url":"https://api.github.com/users/tsg/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T12:34:12Z","updated_at":"2016-08-09T12:34:12Z","body":"Ok, I thought @urso would be against it. In this case, I'm also +1 on the change :-)."}}
{"actor":{"display_login":"tsg"}}