{"action":"closed","issue":{"url":"https://api.github.com/repos/cf-tm-bot/loggregator/issues/427","repository_url":"https://api.github.com/repos/cf-tm-bot/loggregator","labels_url":"https://api.github.com/repos/cf-tm-bot/loggregator/issues/427/labels{/name}","comments_url":"https://api.github.com/repos/cf-tm-bot/loggregator/issues/427/comments","events_url":"https://api.github.com/repos/cf-tm-bot/loggregator/issues/427/events","html_url":"https://github.com/cf-tm-bot/loggregator/issues/427","id":195052894,"number":427,"title":"As an operator I should only see human readable logs. (Traffic Controller) - Story Id: 135970983","user":{"login":"cf-tm-bot","id":20690070,"avatar_url":"https://avatars.githubusercontent.com/u/20690070?v=3","gravatar_id":"","url":"https://api.github.com/users/cf-tm-bot","html_url":"https://github.com/cf-tm-bot","followers_url":"https://api.github.com/users/cf-tm-bot/followers","following_url":"https://api.github.com/users/cf-tm-bot/following{/other_user}","gists_url":"https://api.github.com/users/cf-tm-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/cf-tm-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cf-tm-bot/subscriptions","organizations_url":"https://api.github.com/users/cf-tm-bot/orgs","repos_url":"https://api.github.com/users/cf-tm-bot/repos","events_url":"https://api.github.com/users/cf-tm-bot/events{/privacy}","received_events_url":"https://api.github.com/users/cf-tm-bot/received_events","type":"User","site_admin":false},"labels":[{"id":446216068,"url":"https://api.github.com/repos/cf-tm-bot/loggregator/labels/accepted","name":"accepted","color":"4e8200","default":false},{"id":446001126,"url":"https://api.github.com/repos/cf-tm-bot/loggregator/labels/feature","name":"feature","color":"ededed","default":false},{"id":499555536,"url":"https://api.github.com/repos/cf-tm-bot/loggregator/labels/sane-defaults","name":"sane-defaults","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-12T18:45:15Z","updated_at":"2016-12-23T20:45:30Z","closed_at":"2016-12-23T20:45:30Z","body":"__AC__\n1. All component log entries for Traffic Controller should be human readable\n\nexample of bad log \n```\n{\"timestamp\":1481301531.180773258,\"process_id\":2935,\"source\":\"metron\",\"log_level\":\"info\",\"message\":\"Startup: Setting up the Metron agent\",\"data\":null,\"file\":\"/var/vcap/data/compile/metron_agent/loggregator/src/metron/main.go\",\"line\":66,\"method\":\"main.main\"}\n{\"timestamp\":1481301532.181328297,\"process_id\":2935,\"source\":\"metron\",\"log_level\":\"warn\",\"message\":\"Failed to connect to etcd. Number of tries: 1. Backing off for 2s.\",\"data\":{\"error\":\"sync cluster failed\"},\"file\":\"/var/vcap/data/compile/metron_agent/loggregator/src/metron/backoff/backoff.go\",\"line\":33,\"method\":\"metron/backoff.Connect\"}\n{\"timestamp\":1481301533.188603163,\"process_id\":2935,\"source\":\"metron\",\"log_level\":\"warn\",\"message\":\"Failed to connect to etcd. Number of tries: 2. Backing off for 4s.\",\"data\":{\"error\":\"sync cluster failed\"},\"file\":\"/var/vcap/data/compile/metron_agent/loggregator/src/metron/backoff/backoff.go\",\"line\":33,\"method\":\"metron/backoff.Connect\"}\n{\"timestamp\":1481301538.190621614,\"process_id\":2935,\"source\":\"metron\",\"log_level\":\"warn\",\"message\":\"Failed to connect to etcd. Number of tries: 3. Backing off for 8s.\",\"data\":{\"error\":\"sync cluster failed\"},\"file\":\"/var/vcap/data/compile/metron_agent/loggregator/src/metron/backoff/backoff.go\",\"line\":33,\"method\":\"metron/backoff.Connect\"}\n{\"timestamp\":1481301547.193206549,\"process_id\":2935,\"source\":\"metron\",\"log_level\":\"warn\",\"message\":\"Failed to connect to etcd. Number of tries: 4. Backing off for 16s.\",\"data\":{\"error\":\"sync cluster failed\"},\"file\":\"/var/vcap/data/compile/metron_agent/loggregator/src/metron/backoff/backoff.go\",\"line\":33,\"method\":\"metron/backoff.Connect\"}\n{\"timestamp\":1481301564.201681852,\"process_id\":2935,\"source\":\"metron\",\"log_level\":\"warn\",\"message\":\"Failed to connect to etcd. Number of tries: 5. Backing off for 32s.\",\"data\":{\"error\":\"sync cluster failed\"},\"file\":\"/var/vcap/data/compile/metron_agent/loggregator/src/metron/backoff/backoff.go\",\"line\":33,\"method\":\"metron/backoff.Connect\"}\n{\"timestamp\":1481301597.217199802,\"process_id\":2935,\"source\":\"metron\",\"log_level\":\"warn\",\"message\":\"Failed to connect to etcd. Number of tries: 6. Backing off for 1m0s.\",\"data\":{\"error\":\"sync cluster failed\"},\"file\":\"/var/vcap/data/compile/metron_agent/loggregator/src/metron/backoff/backoff.go\",\"line\":33,\"method\":\"metron/backoff.Connect\"}\n{\"timestamp\":1481301658.219304800,\"process_id\":2935,\"source\":\"metron\",\"log_level\":\"warn\",\"message\":\"Failed to connect to etcd. Number of tries: 7. Backing off for 1m0s.\",\"data\":{\"error\":\"sync cluster failed\"},\"file\":\"/var/vcap/data/compile/metron_agent/loggregator/src/metron/backoff/backoff.go\",\"line\":33,\"method\":\"metron/backoff.Connect\"}\n{\"timestamp\":1481301719.239291430,\"process_id\":2935,\"source\":\"metron\",\"log_level\":\"warn\",\"message\":\"Failed to connect to etcd. Number of tries: 8. Backing off for 1m0s.\",\"data\":{\"error\":\"sync cluster failed\"},\"file\":\"/var/vcap/data/compile/metron_agent/loggregator/src/metron/backoff/backoff.go\",\"line\":33,\"method\":\"metron/backoff.Connect\"}\n{\"timestamp\":1481301780.259308100,\"process_id\":2935,\"source\":\"metron\",\"log_level\":\"warn\",\"message\":\"Failed to connect to etcd. Number of tries: 9. Backing off for 1m0s.\",\"data\":{\"error\":\"sync cluster failed\"},\"file\":\"/var/vcap/data/compile/metron_agent/loggregator/src/metron/backoff/backoff.go\",\"line\":33,\"method\":\"metron/backoff.Connect\"}\n{\"timestamp\":1481301841.277715921,\"process_id\":2935,\"source\":\"metron\",\"log_level\":\"warn\",\"message\":\"Failed to connect to etcd. Number of tries: 10. Backing off for 1m0s.\",\"data\":{\"error\":\"sync cluster failed\"},\"file\":\"/var/vcap/data/compile/metron_agent/loggregator/src/metron/backoff/backoff.go\",\"line\":33,\"method\":\"metron/backoff.Connect\"}\n```\n\n__Standardized PCF Component Log__\n```\n2016-11-29T12:35:16.931595Z 10.10.147.88 vcap.rep [instance@47450 deployment=”cf” instance_group=”cell_z1” id=”006463a1-45719-9f6d”] [environment@{$YOUR_ENTERPRISE_ID} name=”eu-east-red”]\n{\"timestamp\":\"1480422916.931512594\", \"source\":\"rep\",\"message\":\"rep.metrics-reporter.containerstore-list.starting\",\"log_level\":1,\"data\":{\"session\":\"7.19442\"}}\n```\nsee proposal - https://docs.google.com/document/d/10iaWp4neGK1tIB5h5_kG7LPVVzqdQGhujaw-27TIg2g/edit#\n\n\n---\n\nMirrors: [story 135970983](https://www.pivotaltracker.com/story/show/135970983) submitted on Dec 12, 2016 UTC\n- **Requester**: Adam Hevenor\n- **Owners**: Andrew Poydence, Eno Compton\n- **Estimate**: 1.0"}}
{"actor":{"display_login":"cf-tm-bot"}}