Logrotate delete old files

Hi,

I am using elasticsearch 7.5.2. Elasticsearch is rotating its logs each day by default.
How can I configure elasticsearch to keep only the last 7 days for example?

What is best practice? If possible I don't want to configure it again after each elasticsearch update.
If possible want to use elasticsearch internal tools, rather than running external scripts by cron.

Regards, Andreas
Thanks , Andreas

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.