Skip to content

num hits not match logs of top_count_keys #1462

Locked Answered by jertel
YTS85205107 asked this question in Q&A
Discussion options

You must be logged in to vote

It's uses the matched record's timestamp, timestampX, and counts all rule hits that fall in the following time range:

Range Start: timestampX - timeframe (1 minute in your example)
Range Stop: timestampX + 10 minutes (hardcoded, in case there were logs mis timestamped from the future)

So most likely a previous rule run, such as from the 3:18 to 3:19 query, had also found some hits, but not enough to trigger the alert. Then the next rule run found 77 hits, and so the top_count calculation included some hits from the previous minute.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jertel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants