Skip to content
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

Elasticsearch - instructions to configure retention #39

Open
wioxjk opened this issue Feb 23, 2022 · 2 comments
Open

Elasticsearch - instructions to configure retention #39

wioxjk opened this issue Feb 23, 2022 · 2 comments
Labels

Comments

@wioxjk
Copy link

wioxjk commented Feb 23, 2022

Hi!

As someone that is not really an Elasticsearch-guru - setting up retention for the Haraka-logging in elasticsearch is quite a challenge.

I following the very clear instructions here, on about setting up the logging towards the Elasticsearch-server here:
https://haraka.github.io/plugins/log.elasticsearch/

But I am really struggling with configuring automatic deletion of logs after X amount of days.

How did you guys solve it? I was made aware of this when elasticsearch was full (999/1000 shards) and therefore was not logging correctly. I "fixed" this by increasing the shards on the installation.

@msimerson msimerson transferred this issue from haraka/Haraka Feb 24, 2022
@msimerson
Copy link
Member

I solved this for myself by first: rolling up the existing shards into monthly shards instead of daily, and then configuring fewer shards per file.

@msimerson
Copy link
Member

I have created a FAQ with some strategies I've used to manage my ES cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants