Skip to content

ElastAlert not automation re-create Index after elastalert Index deleted #1299

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

You must be logged in to vote

One option is to use a cron or systemd timer that invokes the ES delete API every night, to prune older documents. Ex: https://discuss.elastic.co/t/automatically-delete-older-documents/247078/10. This is a small effort, in the range of hours.

Another option is to submit a PR to ElastAlert 2 for switching to daily indices. This is a much larger effort compared to the first option, in the range of days to weeks depending on your Python and unit test skillset.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@quoctuan2311
Comment options

@jertel
Comment options

Answer selected by quoctuan2311
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
Converted from issue

This discussion was converted from issue #1297 on October 17, 2023 11:02.