From 2caf331e8edcad4c76afc06ffab16462e73f9ae4 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Mon, 11 Mar 2019 11:26:10 -0400 Subject: [PATCH] Hive Module - Fix ES logging --- salt/hive/thehive/etc/es/log4j2.properties | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 salt/hive/thehive/etc/es/log4j2.properties diff --git a/salt/hive/thehive/etc/es/log4j2.properties b/salt/hive/thehive/etc/es/log4j2.properties new file mode 100644 index 000000000..85cf5d8fb --- /dev/null +++ b/salt/hive/thehive/etc/es/log4j2.properties @@ -0,0 +1,20 @@ +status = error +#appender.console.type = Console +#appender.console.name = console +#appender.console.layout.type = PatternLayout +#appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n +#rootLogger.level = info +#rootLogger.appenderRef.console.ref = console +# This is a test -- if this here, then the volume is mounted correctly. +appender.rolling.type = RollingFile +appender.rolling.name = rolling +appender.rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}.log +appender.rolling.layout.type = PatternLayout +appender.rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c] %.10000m%n +appender.rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}-%d{yyyy-MM-dd}.log +appender.rolling.policies.type = Policies +appender.rolling.policies.time.type = TimeBasedTriggeringPolicy +appender.rolling.policies.time.interval = 1 +appender.rolling.policies.time.modulate = true +rootLogger.level = info +rootLogger.appenderRef.rolling.ref = rolling