Our Elasticsearch cluster seems to be generating new log files every day and retaining them indefinitely.
I found this post explaining that to fix this I should be adding maxBackupIndex to my logging.yml files. https://xenforo.com/community/threads/elasticsearch-logfile-handling.42268/
I have made this change and restarted the service but the file count hasn't changed.
This post also discusses this issue. One person mentions their version doesn't support the feature and another person mentions the use of logrotate. Deleting old ES logs /var/log/elasticsearch
I have two questions:
- Which version of Elasticsearch supports the use of maxBackupIndex? (I am currently running v1.3.2)
- What is logrotate and is there any information on using that?
I am trying to avoid writing a custom script to delete the files and scheduling it, but I can if necessary.