Created
December 11, 2014 16:23
-
-
Save dansteen/2c5037a40f3afe0f4e9b to your computer and use it in GitHub Desktop.
syslog-ng config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source s_java{ | |
file("/var/log/api/api_access.log" multi-line-mode(indented) program_override("java") flags(no-parse) tags("api_access.log") log-iw-size(2000) log-fetch-limit(1000)); | |
file("/var/log/api/api_application.log" multi-line-mode(indented) program_override("java") flags(no-parse) tags("api_application.log") log-iw-size(2000) log-fetch-limit(1000)); | |
}; | |
destination d_java_redis { redis( command("LPUSH", "syslog", "${ISODATE} ${HOST}.stag.awse ${MSGHDR}${TAGS}: ${MSG}\n") host("redis_server_url") log-fifo-size(30000) ); }; | |
log { source(s_java); destination(d_java_redis); }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment