Hello,
we are using Elasticsearch 1.6 and have configured in the logging.yml a logger which compresses a log file when it achieves a maximal size of 100KB:
file:
type: extrasRollingFile
file: ${path.logs}/${cluster.name}.log
rollingPolicy: timeBased
rollingPolicy.FileNamePattern: ${path.logs}/${cluster.name}_%i.log.%d{yyyy-MM-dd}.gz
triggeringPolicy.MaxFileSize: 100KB
layout:
type: pattern
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
Is it also possible to add some configuration such that old compressed log files are removed e.g. after 14 days? We tried the parameter MaxBackupIndex but it was not accepted by Elasticsearch - perhaps we just do not know the syntax how to add it.
Thank you very much and best Regards.
Achim