{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/22683","repository_url":"https://api.github.com/repos/elastic/elasticsearch","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/22683/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/22683/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/22683/events","html_url":"https://github.com/elastic/elasticsearch/issues/22683","id":201692609,"number":22683,"title":"Add option to disable source logging for search slow log ","user":{"login":"animageofmine","id":6426633,"avatar_url":"https://avatars3.githubusercontent.com/u/6426633?v=4","gravatar_id":"","url":"https://api.github.com/users/animageofmine","html_url":"https://github.com/animageofmine","followers_url":"https://api.github.com/users/animageofmine/followers","following_url":"https://api.github.com/users/animageofmine/following{/other_user}","gists_url":"https://api.github.com/users/animageofmine/gists{/gist_id}","starred_url":"https://api.github.com/users/animageofmine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/animageofmine/subscriptions","organizations_url":"https://api.github.com/users/animageofmine/orgs","repos_url":"https://api.github.com/users/animageofmine/repos","events_url":"https://api.github.com/users/animageofmine/events{/privacy}","received_events_url":"https://api.github.com/users/animageofmine/received_events","type":"User","site_admin":false},"labels":[{"id":146832564,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Search/Search","name":":Search/Search","color":"0e8a16","default":false},{"id":23174,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/%3Eenhancement","name":">enhancement","color":"4a4ea8","default":false},{"id":110815527,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/adoptme","name":"adoptme","color":"207de5","default":false},{"id":113234020,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/stalled","name":"stalled","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-01-18T21:07:57Z","updated_at":"2018-03-16T11:05:05Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!--\r\nGitHub is reserved for bug reports and feature requests. The best place\r\nto ask a general question is at the Elastic Discourse forums at\r\nhttps://discuss.elastic.co. If you are in fact posting a bug report or\r\na feature request, please include one and only one of the below blocks\r\nin your new issue. Note that whether you're filing a bug report or a\r\nfeature request, ensure that your submission is for an\r\n[OS that we support](https://www.elastic.co/support/matrix#show_os).\r\nBug reports on an OS that we do not support or feature requests\r\nspecific to an OS that we do not support will be closed.\r\n-->\r\n\r\n**Describe the feature**:\r\nDetails in this thread: https://discuss.elastic.co/t/turn-off-source-for-slow-logs/71182\r\n\r\nAs far as I know, there is an option to disable source logging for indexing logs, however there is no way to disable source logging for search logs. We are right now logging indexing and search slow logs to fetch latency for both search and indexing queries. \r\n\r\nExample\r\nThe following exists\r\n\r\n```\r\nindex.indexing.slowlog.source: 0 OR\r\nindex.indexing.slowlog.source: false\r\n\r\n```\r\nbut the following configuration does not exist\r\n\r\n```\r\nindex.search.slowlog.source: 0 OR\r\nindex.search.slowlog.source: false\r\n```\r\n\r\nIs it straight forward to add this feature? I was looking at the code and though it seemed like a simple change, I wasn't sure because the code (IndexSettings) is referenced a lot of times. I am willing to work on the change though if someone can give me a quick starter. "},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/373680918","html_url":"https://github.com/elastic/elasticsearch/issues/22683#issuecomment-373680918","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/22683","id":373680918,"user":{"login":"javanna","id":832460,"avatar_url":"https://avatars1.githubusercontent.com/u/832460?v=4","gravatar_id":"","url":"https://api.github.com/users/javanna","html_url":"https://github.com/javanna","followers_url":"https://api.github.com/users/javanna/followers","following_url":"https://api.github.com/users/javanna/following{/other_user}","gists_url":"https://api.github.com/users/javanna/gists{/gist_id}","starred_url":"https://api.github.com/users/javanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javanna/subscriptions","organizations_url":"https://api.github.com/users/javanna/orgs","repos_url":"https://api.github.com/users/javanna/repos","events_url":"https://api.github.com/users/javanna/events{/privacy}","received_events_url":"https://api.github.com/users/javanna/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T11:05:05Z","updated_at":"2018-03-16T11:05:05Z","author_association":"MEMBER","body":"@elastic/es-search-aggs "}}
{"actor":{"display_login":"javanna"}}