diff --git a/configure-syslog.py b/configure-syslog.py index 1908524..7d29c23 100644 --- a/configure-syslog.py +++ b/configure-syslog.py @@ -102,7 +102,7 @@ # ------------------------------------------------------- %s template t_LogglyFormat { template("<${PRI}>1 ${ISODATE} ${HOST} ${PROGRAM} \ -${PID} ${MSGID} [%s@%s tag=\\"Example1\\"] $MSG\\n");}; +${PID} ${MSGID} [%s@%s] $MSG\\n");}; destination d_loggly {tcp("%s" port(%s) template(t_LogglyFormat));}; log { source(%s); destination(d_loggly); }; # ------------------------------------------------------- @@ -116,7 +116,7 @@ #$template - Define logging format // $template # $template LogglyFormat,"<%%pri%%>%%protocol-version%% %%timestamp:::date-rfc3339%% \ -%%HOSTNAME%% %%app-name%% %%procid%% %%msgid%% [%s@%s tag=\\"Example1\\"] %%msg%%" +%%HOSTNAME%% %%app-name%% %%procid%% %%msgid%% [%s@%s] %%msg%%" # Send messages to syslog server listening on TCP port using template *.* @@%s:%s;LogglyFormat