-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Alerts table is empty on Rule Details page #148715
Comments
Pinging @elastic/security-solution (Team: SecuritySolution) |
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Could be related to #141010 (comment) |
Could be related to elastic/security-docs#3046 as well, but chances are lower |
After doing an investigation, I think I know what happens here. Once you create a rule, it gets queued for execution, and then you are redirected to the Rule Details page. Execution and writing alerts to DB takes from a couple hundred ms to a few seconds depending on rule type/query. If the Rule Details page finishes loading before alerts are generated, the Alerts table will be empty. Then if you would switch to another tab, like Execution Events, and then return to the Alerts tab, a new request to read alerts is made, and if rule execution is finished by this moment, you'll see alerts. @aarju Do you think this might be the issue here? |
Hey @MadameSheema, may I please ask someone from the QA team to help with reproducing this bug and figuring out the exact steps? This is not urgent and could be done when/if folks have enough bandwidth. @nikitaindik described the possible reason for this behavior in the comment above, and this behavior is not a bug. However, I have a suspicion that the bug could still be there caused by a different reason. I was under the impression that alerts sometimes are not shown even for rules that were created a long time ago and have generated some alerts before the user opens the Rule Details page, which means this would not be related to the case described by Nikita. Please let me know if you can help us with this. I'll move this bug back to the backlog for now. |
Sure!! :) @karanbirsingh-qasource @sukhwindersingh-qasource can you please help with the above task? Please do it when you have a free gap, 8.9 test plan preparation and testing should be top priority. Thanks! |
@MadameSheema and @nikitaindik QA Validated bug 🐛 fixed ✅ |
@cybersecdiva which global filter did you have apply? From which version did you perform the upgrade? Thanks! :) |
@MadameSheema I've updated my findings after performing additional checks. The test rule initially was performed on from
Action Steps:
|
Tested in 8.5.3 upgraded to 8.9.0Kibana/Elasticsearch version:* Build Details:
Preconditions:
Describe the bug: Alerts details is empty on rule details page Steps to reproduce:
Expected behavior: Observations:
Screenshots of behavior:8.5.3 Empty Alerts Table Value after rule creation:8.5.3 Empty Table Value after global filter applied:8.9.0 Upgraded Deployment Empty Table Value after rule creation:8.9.0 Upgraded Deployment Empty Table Value after global filter applied:Screen share recording:Alertsrulestable.-.Kibana.mp4Conclusion:Behavior is still showing in deployments upgraded from prior version releases and alerts table display no values. |
Hey @cybersecdiva, thanks for the repro. In your video, when you click Save on the Rule Creation page (0:25), you get navigated to the Rule Details page, and there's a filter applied right away. The filter is by some rule execution uuid. Did you apply this filter earlier on the Details page of another rule? This would explain why the page showed an empty Alerts table - the rule you just created did not execute with this particular execution id: |
@banderror Thank you for following up. I performed an additional test to adjust the time period to match the rule My conclusion is this could be a delayed timing execution issue and is why initially when I performed the tests in Even if the time frame is set with a start time for Today to end date time of now, the rule executes and will show up after a brief refresh period and selection of the refresh button. When the Screen recording of Start Date Time ruletabletestvarious.time.frames.mp4Screenshot of Start Date Time My determination is this is not a bug 🐛 , as I've observed after several tests that values will show-up after a refresh period and even when the additional look back time and start time matches Another test, the values show up when the start date time is Today without the additional look back time match as indicated in the screen recording and screenshot. Screenshot of Start fDate Time Screen recording of Start Date Time Rules.Empty.Table.Test.mp4Conclusion:This is not a bug 🐛 , however, it is behavior that needs to be re-checked and tested in @banderror and @MadameSheema FYI, Updated observations QA Validation and leaving open for recheck ✅ and test in the next release. |
Tested in 8.10.2Kibana/Elasticsearch version:* Build Details:
Preconditions: Kibana must be running Describe the bug: Alerts details is empty on rule details page Steps to reproduce:
Expected behavior: Screenshots of Rules Details Page with different Additional look-back times:Runs every Runs every Screenshot of Rule after creation and execution: Screen share recording:Rules.Details.Page.Empty.Rule.test.mp4Conclusion:Behavior is showing as expected and alerts table display alerts and values. cc: @MadameSheema @banderror @yctercero FYI Updated observations marking as |
Summary
Reported by @aarju:
Screen.Recording.2023-01-11.at.10.17.47.mov
The text was updated successfully, but these errors were encountered: