Hi guys,

Help me configure log-retention for ES.
I've struggling to delete old logfiles created by my ES clusters.

I've tried several settings in logging.yml, and none of them (log4j) seems 
to work.
The the file appenders i've tried to add MaxDateRollBackups, maxSizeRollBackups 
an others, no result.

appender:
  console:
    type: console
    layout:
      type: consolePattern
      conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"

  file:
    type: dailyRollingFile
    file: ${path.logs}/${cluster.name}.log
    datePattern: "'.'yyyy-MM-dd"
    MaxDateRollBackups: 2
    layout:
      type: pattern
      conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"

logfile format looks like this:

-rw-r--r-- 1 elasticsearch elasticsearch  29M Oct 30 23:59 
SHQA01ESCL1.log.2014-10-30
-rw-r--r-- 1 elasticsearch elasticsearch  18M Oct 31 23:59 
SHQA01ESCL1.log.2014-10-31
-rw-r--r-- 1 elasticsearch elasticsearch  13M Nov  1 23:58 
SHQA01ESCL1.log.2014-11-01
-rw-r--r-- 1 elasticsearch elasticsearch 202M Nov  2 23:51 
SHQA01ESCL1.log.2014-11-02
-rw-r--r-- 1 elasticsearch elasticsearch  35M Nov  3 23:59 
SHQA01ESCL1.log.2014-11-03
-rw-r--r-- 1 elasticsearch elasticsearch  43M Nov  4 23:59 
SHQA01ESCL1.log.2014-11-04
-rw-r--r-- 1 elasticsearch elasticsearch 4.6M Nov  5 19:33 
SHQA01ESCL1.log.2014-11-05
-rw-r--r-- 1 elasticsearch elasticsearch  95M Nov  6 23:59 
SHQA01ESCL1.log.2014-11-06


Currently my ES cluster is 1.0.3, and we should upgrade to latest version 
in Q1, 2015..

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/c36959ae-951b-4cbc-ac5c-ef87ce26039e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to