Pruning logs - how to get maxBackupIndex to work?

Elasticsearch isn't pruning the logs, so I found this input to add to
logging.yml.
However, this isn't working for me.

Is there any other workarounds- configs for this file that will work?

file:
type: dailyRollingFile
file: ${path.logs}/${cluster.name}.log
datePattern: "'.'yyyy-MM-dd"
#I added the following line in order to delete logs every 7 days
maxBackupIndex: 7
layout:
type: pattern
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"

Cheers

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/84410fb0-2edb-4d2e-b164-dc537061fd61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Something like this should work. The dailyRollingFile appender does not
support maxBackupIndex.

appender:
.....
file:
type: rollingFile
file: ${path.logs}/${cluster.name}.log
maxFileSize: 10000000
maxBackupIndex: 10
layout:
type: pattern
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"

See also
http://elasticsearch-users.115913.n3.nabble.com/log-file-rolling-by-size-td4025190.html

Jörg

On Wed, Dec 17, 2014 at 9:00 PM, Pauline Kelly pauline.m.kelly1@gmail.com
wrote:

Elasticsearch isn't pruning the logs, so I found this input to add to
logging.yml.
However, this isn't working for me.

Is there any other workarounds- configs for this file that will work?

file:
type: dailyRollingFile
file: ${path.logs}/${cluster.name}.log
datePattern: "'.'yyyy-MM-dd"
#I added the following line in order to delete logs every 7 days
maxBackupIndex: 7
layout:
type: pattern
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"

Cheers

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/84410fb0-2edb-4d2e-b164-dc537061fd61%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/84410fb0-2edb-4d2e-b164-dc537061fd61%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFQ3jMZBgEyjXXxyV8QvN%3Dpe%2BpYDQSpuoLOdp0Gn_E6nA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.