-
Notifications
You must be signed in to change notification settings - Fork 640
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
Alerts are not getting deleted as expected #974
Comments
Additionally, if there is a supported way to delete all alerts or completely remove an alert, please let me know. |
The alert delete API just sets the status to If you really want to delete the document from the DB, then you need to make it on the database directly, but donc remove the alerts that have been promoted into a case. This can be fixed by the feature that allow setting a purge date, but it's not yet planned. |
I was in fact referring to your issue number #965 |
@nadouani Can you re-open the issue, I believe you responded to my follow-up comment instead of the bug. My comment was asking about hard-deletion ,but the bug I reported is regarding the alert-count not changing. Even for soft-deletes, the 'Alerts" count should go down when alerts are ignored. At least that is how it used to be. |
Sure, it's reopened now |
I agree. It's supposed to work that way, when an alert is marked as |
@nadouani Have you had a chance to revist this? |
I'll give it a try for RC2 |
Hi @ag-michael I wasn't able to reproduce the fact that the alert count doesn't decrease when deleting an alert. We will also add a feature that allows hard delete of alerts using an dedicated API |
We will add a Only alerts not promoted to case will be deletable, only by admin users. |
Thank you so much for allowing deletion of alerts. I am unsure why the alert count won't go down. It could have something to do with ES's default limit of 10K results maybe? Did you test on a large number of alerts? Regardless, the hard deletion might fix that problem for me as well. Developer console shows
I'll see if i can delete all unimported alerts once the new api function is released. Thanks again. |
Request Type
Bug
Work Environment
Problem Description
Alert count is not dropping event after deleting alerts.
I have been using DELETE requests against the api end point
/api/alert/<alert id>
to remove alerts continually. However, I'm not seeing the alert count drop. This is making the TheHive much slower than it use to be and much more difficult to search alerts and cases.Steps to Reproduce
Complementary information
I'm using this script to automate the alert auto age-out: https://gist.github.com/ag-michael/532f94df98a761b95c167b0652ccc88c
The text was updated successfully, but these errors were encountered: