{"action":"opened","issue":{"url":"https://api.github.com/repos/prometheus/alertmanager/issues/967","repository_url":"https://api.github.com/repos/prometheus/alertmanager","labels_url":"https://api.github.com/repos/prometheus/alertmanager/issues/967/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/alertmanager/issues/967/comments","events_url":"https://api.github.com/repos/prometheus/alertmanager/issues/967/events","html_url":"https://github.com/prometheus/alertmanager/issues/967","id":254669844,"number":967,"title":"JSON log format does not consistently produce JSON logs","user":{"login":"jjneely","id":10540,"avatar_url":"https://avatars0.githubusercontent.com/u/10540?v=4","gravatar_id":"","url":"https://api.github.com/users/jjneely","html_url":"https://github.com/jjneely","followers_url":"https://api.github.com/users/jjneely/followers","following_url":"https://api.github.com/users/jjneely/following{/other_user}","gists_url":"https://api.github.com/users/jjneely/gists{/gist_id}","starred_url":"https://api.github.com/users/jjneely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjneely/subscriptions","organizations_url":"https://api.github.com/users/jjneely/orgs","repos_url":"https://api.github.com/users/jjneely/repos","events_url":"https://api.github.com/users/jjneely/events{/privacy}","received_events_url":"https://api.github.com/users/jjneely/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-01T15:08:31Z","updated_at":"2017-09-01T15:08:31Z","closed_at":null,"author_association":"NONE","body":"I'm using Alertmanager 0.8.0 and have my logging options set like this:\r\n\r\n```\r\n-log.format logger:stderr?json=true\r\n```\r\n\r\nHowever, Alertmanager does not consistently log in JSON format.  I get a mix of JSON and color-coded tty style logging.  This makes integration with our ELK stack much more painful that it should be.  Not to mention the control codes in the log output.\r\n\r\nExample:\r\n\r\n[prometheus-alertmanager.txt](https://github.com/prometheus/alertmanager/files/1270662/prometheus-alertmanager.txt)\r\n\r\n"}}
{"actor":{"display_login":"jjneely"}}