"Wrong" use case for ElastAlert - alerting on historic data #1359
-
Hi! I have an ElastAlert use case which I'm struggling to solve. To give you an example of what I try to accomplish: I have an index with, say, packetbeat data and the data in this index was indexed more than 70 days ago. Now I want to use an ElastAlert blacklist rule on that data but (of course?) EA is unable to find and trigger. I think (wrongly?) that the default time range applied by EA excludes the events of interest. If I add a If I perform a re-index operation, taking the packetbeat index and re-index (copy) that data to a new index and resetting the timestamp to today's date using an indexing pipeline and then perform the blacklist rule on the new index, ElastAlert works perfectly fine. I fully appreciate the fact that the purpose of EA is to perform its duties on streaming data (mostly in real time) with a moving time window and that my use case could be a little awkward for EA to handle, but I'm a little puzzled as to why it handles the data in the new index so well? I get a feeling that EA adds a "today range filter" by default which could be the answer. Is it so? If it is possible to tweak this in any way to accommodate my first use case I'd be extremely happy. Using my second approach might be a workaround initially but... I hope my ramblings make sense and many thanks in advance if you've read this far! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hello! It makes sense what you're asking. You can use the standalone scenario, specifying the |
Beta Was this translation helpful? Give feedback.
Hello!
It makes sense what you're asking.
You can use the standalone scenario, specifying the
--start
and--end
args to tell it the timeframe to search. Read more about command line parameters here: https://elastalert2.readthedocs.io/en/latest/flags.html