Enabling compression on elasticsearch.log


(g) #1

i'm wondering how / if there is support for automatic compression of elasticsearch.log via logging.yml.

it looks like there might be via issue #7927 and this PR#8464 ...but maybe limited to v1.5?

ideally, i'd like to see a logging.yml syntax example and clarification of what version(s) it works in

thanks in advance!


(Colin Goodheart-Smithe) #2

Yes you are right that the additional of log4j-extras (which allows for compression of log files was added in version 1.5. For an example of enabling the RollingFileAppender (which compresses the log files) see https://github.com/elastic/elasticsearch/blob/master/config/logging.yml#L43-52.


(system) #3