{"action":"opened","issue":{"url":"https://api.github.com/repos/Yelp/elastalert/issues/1282","repository_url":"https://api.github.com/repos/Yelp/elastalert","labels_url":"https://api.github.com/repos/Yelp/elastalert/issues/1282/labels{/name}","comments_url":"https://api.github.com/repos/Yelp/elastalert/issues/1282/comments","events_url":"https://api.github.com/repos/Yelp/elastalert/issues/1282/events","html_url":"https://github.com/Yelp/elastalert/issues/1282","id":249085278,"number":1282,"title":"summary_table_fields ignored when aggregation is used","user":{"login":"amraam83","id":1481627,"avatar_url":"https://avatars2.githubusercontent.com/u/1481627?v=4","gravatar_id":"","url":"https://api.github.com/users/amraam83","html_url":"https://github.com/amraam83","followers_url":"https://api.github.com/users/amraam83/followers","following_url":"https://api.github.com/users/amraam83/following{/other_user}","gists_url":"https://api.github.com/users/amraam83/gists{/gist_id}","starred_url":"https://api.github.com/users/amraam83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amraam83/subscriptions","organizations_url":"https://api.github.com/users/amraam83/orgs","repos_url":"https://api.github.com/users/amraam83/repos","events_url":"https://api.github.com/users/amraam83/events{/privacy}","received_events_url":"https://api.github.com/users/amraam83/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-09T16:17:25Z","updated_at":"2017-08-09T16:17:25Z","closed_at":null,"body":"Hi,\r\n\r\nI need to have a report printed on my alert for the following rule:\r\n```\r\nname: 'not 200 ok'\r\n\r\ntype: frequency\r\n\r\nnum_events: 3\r\n\r\ntimeframe:\r\n  minutes: 5\r\n\r\nuse_strftime_index: true\r\nindex: logstash-httpd-access-%Y.%m.%d\r\n\r\ndoc_type: httpd-access\r\n\r\nfilter:\r\n- term:\r\n    fields.ssl_client_verify.keyword: \"SUCCESS\"\r\n- term:\r\n    fields.method.keyword: \"POST\"\r\n- terms:\r\n    fields.url_path.keyword: [\"/first/path\", \"/second/path\"]\r\n- terms:\r\n    fields.host_canonical.keyword: [\"first_host\", \"second_host\"]\r\n- query:\r\n   query_string:\r\n      query: \"NOT fields.http_status:200\"\r\n\r\nraw_count_keys: False\r\nsummary_table_fields:\r\n    - sys.id\r\n    - fields.url_path\r\n    - fields.http_status\r\n```\r\nThis works. but if I modify it in the following way (notice the aggregation), the report is not printed on the alarm:\r\n```\r\nname: 'not 200 ok'\r\n\r\ntype: frequency\r\n\r\nnum_events: 3\r\n\r\ntimeframe:\r\n    minutes: 5\r\n\r\nuse_strftime_index: true\r\nindex: logstash-httpd-access-%Y.%m.%d\r\n\r\ndoc_type: httpd-access\r\n\r\nfilter:\r\n- term:\r\n    fields.ssl_client_verify.keyword: \"SUCCESS\"\r\n- term:\r\n    fields.method.keyword: \"POST\"\r\n- terms:\r\n    fields.url_path.keyword: [\"/first/path\", \"/second/path\"]\r\n- terms:\r\n    fields.host_canonical.keyword: [\"first_host\", \"second_host\"]\r\n- query:\r\n   query_string:\r\n      query: \"NOT fields.http_status:200\"\r\n\r\naggregation:\r\n  minutes: 5\r\n\r\nraw_count_keys: False\r\nsummary_table_fields:\r\n    - sys.id\r\n    - fields.url_path\r\n    - fields.http_status\r\n```\r\nAny suggestions? Bug?"}}
{"actor":{"display_login":"amraam83"}}