I've tried to configure logrotate to just zip up the daily files that 
elasticsearch creates, but I just can't figure out how...

So, I thought I'd configure elasticsearch to just use one file and not 
create daily files. That way logrotate can deal with rotation.

In logging.yml I see:

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"
>     layout:
>       type: pattern
>       conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
>   index_search_slow_log_file:
>     type: dailyRollingFile
>     file: ${path.logs}/${cluster.name}_index_search_slowlog.log
>     datePattern: "'.'yyyy-MM-dd"
>     layout:
>       type: pattern
>       conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
>   index_indexing_slow_log_file:
>     type: dailyRollingFile
>     file: ${path.logs}/${cluster.name}_index_indexing_slowlog.log
>     datePattern: "'.'yyyy-MM-dd"
>     layout:
>       type: pattern
>       conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"


I assume that I would change type: dailyRollingFile to something else. I've 
searched both the elasticsearch and log4j docs, but I haven't figured out 
where they show what options are valid. So, what options should I set to 
make elasticsearch only use one file for each of the configured log files?

I'm running version 0.90.9.

Thanks!

-- 
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/ca0831f5-2cfb-4b01-9690-e6fdbcea953e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to