Created
October 28, 2014 17:36
-
-
Save sowamazing/1c17b35f68784593d502 to your computer and use it in GitHub Desktop.
Sending JSON Format Logs From Syslog-ng - Snippet 3
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_windows { | |
syslog(); | |
}; | |
template LogglyFormat { template("<${PRI}>1 ${ISODATE} ${HOST} ${PROGRAM} ${PID} ${MSGID} [abcd1234-aaaa-bbbb-1234-1234abcd1234@41058] $(format_json --scope sdata --scope selected_macros)\n");}; | |
destination d_loggly { tcp("logs-01.loggly.com" port(514) template(LogglyFormat)); }; | |
log { source(s_windows); destination(d_loggly); }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment