|
@@ -39,6 +39,17 @@ appender:
|
|
|
type: pattern
|
|
|
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
|
|
|
|
|
|
+ # Use the following log4j-extras RollingFileAppender to enable gzip compression of log files.
|
|
|
+ # For more information see https://logging.apache.org/log4j/extras/apidocs/org/apache/log4j/rolling/RollingFileAppender.html
|
|
|
+ #file:
|
|
|
+ #type: extrasRollingFile
|
|
|
+ #file: ${path.logs}/elasticsearch.log.gz
|
|
|
+ #rollingPolicy: timeBased
|
|
|
+ #rollingPolicy.FileNamePattern: ${path.logs}/${cluster.name}%d{yyyy-MM-dd}.log.gz
|
|
|
+ #layout:
|
|
|
+ #type: pattern
|
|
|
+ #conversionPattern: "%d{ISO8601}"
|
|
|
+
|
|
|
index_search_slow_log_file:
|
|
|
type: dailyRollingFile
|
|
|
file: ${path.logs}/${cluster.name}_index_search_slowlog.log
|