l made a schedule for delete old logs from elasticsearch.
The command is that 30 0 * * * curator delete indices --time-unit days --timestring '%Y.%m.%d' --older-than 270
but the command doesn't wokr and even the logrotate doesn't work for elasticsearch log
Sir.Logrotate doesn't work for elasticsearch logs . What may be reason?
for example my elasticsearch log file directory is /var/log/elasticsearch/ there are such files elasticsearch.log.2010-01-05
how l must to write director for logrotate
/var/log/elasticsearch/*.log.[0-9]?
I have no idea what version of Elasticsearch you are using, and still have no idea which version of Linux you are using (given the extremely outdated version of Python).
Elasticsearch should not be configured to rotate logs via logrotate, but with Elasticsearch's own logging configuration. These instructions are for the most recent release (7.10 at this writing) of Elasticsearch.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.