-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security Solution] Fix signals index initialization bug #123087
Conversation
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No longer able to reproduce the bug... looks good!
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
I have tested this as well on my local and looks fine. @stephmilovic there is just a little detail I would like to double-check with you when you have time (it is not something that should block the merge) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM. Tested locally ✅
) (cherry picked from commit fef96e9)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
Summary
See here: #122958
We need to poll for the signals index between when it a rule is created and the first alert is written. Before we were doing this by polling when the user hits search as we were counting on the user hitting refresh to see their very first alerts on the Rule Details page after it was created. However, if you navigate away from the Rule Details page and back to the alerts page, the Alerts query will rerun but the poll for the signals index will not. I fixed this by polling on the Sourcerer component itself when this condition is true.
Checklist