elastalert
elastalert copied to clipboard
How to query real time logs .
@Qmando I would like to query the maximum number of documents to match with the real-time logs. As you can see below I get huge documents gets downloaded but the query time is not matched with the real-time ES documents. This is because it takes times to read all the downloaded the documents
As you can see from the below example the current time is 08:21 but the rule is still querying the old documents for the time frame 06:56 UTC to 2018-01-15 06:56*
Example : Jan 15 08:21:40 hostname-elastalertpython: INFO:elastalert:Queried rule Ephemeral scan Outbreak Rule from 2018-01-15 06:56 UTC to 2018-01-15 06:56 UTC: 6744416 / 721 hits
Jan 15 08:21:40 hostname-elastalertpython: INFO:elastalert:Queried rule Ephemeral scan Outbreak Rule from 2018-01-15 06:56 UTC to 2018-01-15 06:56 UTC: 6744416 / 721 hits
Jan 15 08:21:40 hostname-elastalertpython: INFO:elastalert:Queried rule Ephemeral scan Outbreak Rule from 2018-01-15 06:56 UTC to 2018-01-15 06:56 UTC: 6744421 / 5 hits
Jan 15 08:21:40 hostname-elastalertpython: INFO:elastalert:Queried rule Ephemeral scan Outbreak Rule from 2018-01-15 06:56 UTC to 2018-01-15 06:56 UTC: 6744425 / 4 hits
Jan 15 08:21:40 hostname-elastalertpython: INFO:elastalert:Queried rule Ephemeral scan Outbreak Rule from 2018-01-15 06:56 UTC to 2018-01-15 06:56 UTC: 6744448 / 23 hits
Jan 15 08:21:41 hostname-elastalertpython: INFO:elastalert:Queried rule Ephemeral scan Outbreak Rule from 2018-01-15 06:56 UTC to 2018-01-15 06:56 UTC: 6745812 / 1364 hits
Jan 15 08:21:41 hostname-elastalertpython: INFO:elastalert:Queried rule Ephemeral scan Outbreak Rule from 2018-01-15 06:56 UTC to 2018-01-15 06:56 UTC: 6746569 / 757 hits
Jan 15 08:21:41 hostname-elastalertpython: INFO:elastalert:Queried rule Ephemeral scan Outbreak Rule from 2018-01-15 06:56 UTC to 2018-01-15 06:56 UTC: 6746590 / 21 hits
Jan 15 08:21:42 hostname-elastalertpython: INFO:elastalert:Queried rule Ephemeral scan Outbreak Rule from 2018-01-15 06:56 UTC to 2018-01-15 06:56 UTC: 6747237 / 647 hits
Jan 15 08:21:42 hostname-elastalertpython: INFO:elastalert:Queried rule Ephemeral scan Outbreak Rule from 2018-01-15 06:56 UTC to 2018-01-15 06:56 UTC: 6748528 / 1291 hits
Jan 15 08:21:43 hostname-elastalertpython: INFO:elastalert:Queried rule Ephemeral scan Outbreak Rule from 2018-01-15 06:56 UTC to 2018-01-15 06:56 UTC: 6748746 / 218 hits
Jan 15 08:21:43 hostname-elastalertpython: INFO:elastalert:Queried rule Ephemeral scan Outbreak Rule from 2018-01-15 06:56 UTC to 2018-01-15 06:56 UTC: 6749443 / 697 hits