Skip to content

Instantly share code, notes, and snippets.

@jaytaylor
jaytaylor / log4j2.properties
Created January 26, 2018 23:36
Elasticsearch log4j2.properties file for hybrid console + disk-based logging, with rotation and expiration.
status = error
dest = err
name = PopertiesConfig
property.logDir = /var/log/elasticsearch
appender.console.type = Console
appender.console.name = STDOUT
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n