From f677f3e327b37f128ea4a0dfe280f8612f7381e4 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Mon, 16 Jan 2017 07:40:29 -0500 Subject: [PATCH] Expose logs base path This commit responds to a change in core Elasticsearch to expose different properties for configuring the log files. Relates elastic/elasticsearch#4633 Original commit: elastic/x-pack-elasticsearch@4caab617bf3dc7456a744be86c07fad392515d0d --- elasticsearch/config/x-pack/log4j2.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elasticsearch/config/x-pack/log4j2.properties b/elasticsearch/config/x-pack/log4j2.properties index d44184be7c1..8968bd51d1b 100644 --- a/elasticsearch/config/x-pack/log4j2.properties +++ b/elasticsearch/config/x-pack/log4j2.properties @@ -1,9 +1,9 @@ appender.audit_rolling.type = RollingFile appender.audit_rolling.name = audit_rolling -appender.audit_rolling.fileName = ${sys:es.logs}_access.log +appender.audit_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_access.log appender.audit_rolling.layout.type = PatternLayout appender.audit_rolling.layout.pattern = [%d{ISO8601}] %m%n -appender.audit_rolling.filePattern = ${sys:es.logs}_access-%d{yyyy-MM-dd}.log +appender.audit_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_access-%d{yyyy-MM-dd}.log appender.audit_rolling.policies.type = Policies appender.audit_rolling.policies.time.type = TimeBasedTriggeringPolicy appender.audit_rolling.policies.time.interval = 1