{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/10328","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10328/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10328/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10328/events","html_url":"https://github.com/elastic/elasticsearch/issues/10328","id":65277657,"number":10328,"title":"Add Alias information to Slow query logs","user":{"login":"nirmalc","id":3236895,"avatar_url":"https://avatars.githubusercontent.com/u/3236895?v=3","gravatar_id":"","url":"https://api.github.com/users/nirmalc","html_url":"https://github.com/nirmalc","followers_url":"https://api.github.com/users/nirmalc/followers","following_url":"https://api.github.com/users/nirmalc/following{/other_user}","gists_url":"https://api.github.com/users/nirmalc/gists{/gist_id}","starred_url":"https://api.github.com/users/nirmalc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirmalc/subscriptions","organizations_url":"https://api.github.com/users/nirmalc/orgs","repos_url":"https://api.github.com/users/nirmalc/repos","events_url":"https://api.github.com/users/nirmalc/events{/privacy}","received_events_url":"https://api.github.com/users/nirmalc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Logging","name":":Logging","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/discuss","name":"discuss","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-30T18:54:59Z","updated_at":"2015-03-31T07:49:57Z","closed_at":null,"body":"Looks like currently we dont add alias name to slow query logs, Also I doubt if it adds the filter used in alias as well .\r\n\r\nMay be we need to update -> https://github.com/elastic/elasticsearch/blob/master/src/main/java/org/elasticsearch/index/search/slowlog/ShardSlowLogSearchService.java#L185 and  add alias name + Context.aliasFilter ?\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/87983398","html_url":"https://github.com/elastic/elasticsearch/issues/10328#issuecomment-87983398","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10328","id":87983398,"user":{"login":"javanna","id":832460,"avatar_url":"https://avatars.githubusercontent.com/u/832460?v=3","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":"2015-03-31T07:49:57Z","updated_at":"2015-03-31T07:49:57Z","body":"Marking this for discussion. Might make sense to print out the alias filter, a little less to print out the alias name as an alias might point to multiple indices and in the slowlog we want to know the concrete index that the search executes against."}}