I would like to delete elasticsearch logs placed in /var/log/elasticsearch older then 7 days.
I can not find any parameter in log4j2.properties from ELastic official site.
Do you have any idea about it or should I use logrotator of linux.
Thank you so much. The solution you give, is it applicable to the latest 7.x versions ?
The link IfLastModifiedcondition, shows the following lines which relate to DELETING the log files. But, I don't see them in the log4j2.properties file of recent version 7.x.
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.