|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<Configuration packages="org.graylog2.log4j" shutdownHook="disable">
|
|
|
|
<Appenders>
|
|
|
|
<RollingFile name="rolling-file" fileName="{{ graylog_root_dir }}/logs/server.log" filePattern="{{ graylog_root_dir }}/server.log.%i.gz">
|
|
|
|
<PatternLayout pattern="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX} %-5p [%c{1}] %m%n"/>
|
|
|
|
<Policies>
|
|
|
|
<SizeBasedTriggeringPolicy size="50MB"/>
|
|
|
|
</Policies>
|
|
|
|
<DefaultRolloverStrategy max="10" fileIndex="min"/>
|
|
|
|
</RollingFile>
|
|
|
|
|
|
|
|
<!-- Internal Graylog log appender. Please do not disable. This makes internal log messages available via REST calls. -->
|
|
|
|
<Memory name="graylog-internal-logs" bufferSize="500"/>
|
|
|
|
</Appenders>
|
|
|
|
<Loggers>
|
|
|
|
<!-- Application Loggers -->
|
|
|
|
<Logger name="org.graylog2" level="info"/>
|
|
|
|
<Logger name="com.github.joschi.jadconfig" level="warn"/>
|
|
|
|
<!-- Prevent DEBUG message about Lucene Expressions not found. -->
|
|
|
|
<Logger name="org.elasticsearch.script" level="warn"/>
|
|
|
|
<!-- Disable messages from the version check -->
|
|
|
|
<Logger name="org.graylog2.periodical.VersionCheckThread" level="off"/>
|
|
|
|
<!-- Silence chatty natty -->
|
|
|
|
<Logger name="com.joestelmach.natty.Parser" level="warn"/>
|
|
|
|
<!-- Silence Kafka log chatter -->
|
|
|
|
<Logger name="kafka.log.Log" level="warn"/>
|
|
|
|
<Logger name="kafka.log.OffsetIndex" level="warn"/>
|
|
|
|
<Logger name="org.apache.kafka.clients.consumer.ConsumerConfig" level="warn"/>
|
|
|
|
<!-- Silence useless session validation messages -->
|
|
|
|
<Logger name="org.apache.shiro.session.mgt.AbstractValidatingSessionManager" level="warn"/>
|
|
|
|
<Root level="warn">
|
|
|
|
<AppenderRef ref="rolling-file"/>
|
|
|
|
<AppenderRef ref="graylog-internal-logs"/>
|
|
|
|
</Root>
|
|
|
|
</Loggers>
|
|
|
|
</Configuration>
|