{"action":"created","issue":{"url":"https://api.github.com/repos/gpii-ops/gpii-infra/issues/175","repository_url":"https://api.github.com/repos/gpii-ops/gpii-infra","labels_url":"https://api.github.com/repos/gpii-ops/gpii-infra/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/gpii-ops/gpii-infra/issues/175/comments","events_url":"https://api.github.com/repos/gpii-ops/gpii-infra/issues/175/events","html_url":"https://github.com/gpii-ops/gpii-infra/pull/175","id":369256859,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyMjQxNTI2","number":175,"title":"GPII-3397- Decrease the log severity of the CouchDB","user":{"login":"amatas","id":158641,"node_id":"MDQ6VXNlcjE1ODY0MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/158641?v=4","gravatar_id":"","url":"https://api.github.com/users/amatas","html_url":"https://github.com/amatas","followers_url":"https://api.github.com/users/amatas/followers","following_url":"https://api.github.com/users/amatas/following{/other_user}","gists_url":"https://api.github.com/users/amatas/gists{/gist_id}","starred_url":"https://api.github.com/users/amatas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amatas/subscriptions","organizations_url":"https://api.github.com/users/amatas/orgs","repos_url":"https://api.github.com/users/amatas/repos","events_url":"https://api.github.com/users/amatas/events{/privacy}","received_events_url":"https://api.github.com/users/amatas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-10-11T18:48:34Z","updated_at":"2018-10-18T14:30:53Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/gpii-ops/gpii-infra/pulls/175","html_url":"https://github.com/gpii-ops/gpii-infra/pull/175","diff_url":"https://github.com/gpii-ops/gpii-infra/pull/175.diff","patch_url":"https://github.com/gpii-ops/gpii-infra/pull/175.patch"},"body":"The log severity configured in the CouchDB containers is `info`, and this causes that the CouchDB logs every request from the health checks:\r\n```\r\n[notice] 2018-10-11T18:11:14.179590Z couchdb@couchdb-couchdb-1.couchdb-couchdb.gpii.svc.cluster.local <0.17722.0> 66cbd57ff5 localhost:5984 127.0.0.1 a99c4851ccfb586fa58727bcbb869a30 GET /_up 200 ok 2\r\n```\r\nThis PR decreases the log level to `warn`.\r\nhttp://docs.couchdb.org/en/stable/config/logging.html#log/level\r\nwhich is less noisy."},"comment":{"url":"https://api.github.com/repos/gpii-ops/gpii-infra/issues/comments/431031625","html_url":"https://github.com/gpii-ops/gpii-infra/pull/175#issuecomment-431031625","issue_url":"https://api.github.com/repos/gpii-ops/gpii-infra/issues/175","id":431031625,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTAzMTYyNQ==","user":{"login":"amatas","id":158641,"node_id":"MDQ6VXNlcjE1ODY0MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/158641?v=4","gravatar_id":"","url":"https://api.github.com/users/amatas","html_url":"https://github.com/amatas","followers_url":"https://api.github.com/users/amatas/followers","following_url":"https://api.github.com/users/amatas/following{/other_user}","gists_url":"https://api.github.com/users/amatas/gists{/gist_id}","starred_url":"https://api.github.com/users/amatas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amatas/subscriptions","organizations_url":"https://api.github.com/users/amatas/orgs","repos_url":"https://api.github.com/users/amatas/repos","events_url":"https://api.github.com/users/amatas/events{/privacy}","received_events_url":"https://api.github.com/users/amatas/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T14:30:53Z","updated_at":"2018-10-18T14:30:53Z","author_association":"NONE","body":"> @amatas thanks for the explanation. Can't we make CouchDB write logs to stdout? Otherwise this will be an issue with every single event - everything will be logged with `severity: \"ERROR\"`, right?\r\n\r\nI guess that we will have the same amount of logs but with the severity field with other value. That wouldn't decrease the amount of logs received.\r\n\r\n> I would prefer to fix this at the source (as opposed to fixing by exclusion). Also this will be an issue with log exports, the exclusions do not apply there, right?\r\n\r\nI agree with you @stepanstipl , but the CouchDB doesn't allow to set which logs goes to what severity. Perhaps putting an application in the middle that digests the logs and send them properly to the stackdriver would help. But it also adds some complexity. As @mrtyler and @natarajaya said before, perhaps we can improve this in the future."}}
{"actor":{"display_login":"amatas"}}