Having issues with summary_table_fields #1060
-
I'm trying to get one rule to create one alert that includes the summary of all the matches during that aggregation period. I've read through the documentation a lot. I originally started with
You can see I tried to force it to aggregate by the syslog_program so all alerts would bucket together thinking that what the issue with the summary table. You can also see below the that the top_count items all add up and are counted individually. Basically, this is a rudimentary POC I'm trying to get this simple case working so I can understand how to actually do it with other interesting data. What I'm expecting the table to look like in this case is this, but I only ever get one line and the count is always 1.
I've tried using the attach_related etc.. but I only ever get the one column and the "related" matches are always only for the one one host. Here's the current iteration I'm working with which has been changed and modified so many times that I'm finally reaching out. I'll leave the commented lines in to give some indication of what I've tried.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Is there a I would recommend enabling debug so you can look at the true number of matches being returned by Elasticsearch. If you see multiple records being returned by your rule query but only one row shows up in the summary table then that will tell you the problem is not with your query or with Elasticsearch, but with the summary table rendering logic in ElastAlert 2. If you only see one record returned then you will know to focus on your query, aggregation window, or Elasticsearch server settings. |
Beta Was this translation helpful? Give feedback.
Is there a
summary_table_max_rows
defined in your ElastAlert2 config file? (Let's rule out the simple explanation first)I would recommend enabling debug so you can look at the true number of matches being returned by Elasticsearch. If you see multiple records being returned by your rule query but only one row shows up in the summary table then that will tell you the problem is not with your query or with Elasticsearch, but with the summary table rendering logic in ElastAlert 2. If you only see one record returned then you will know to focus on your query, aggregation window, or Elasticsearch server settings.