diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2004-11-25 10:03:18 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2004-11-25 10:03:18 +0000 |
commit | 7720bcded1fe377b3c7defb0ea76dd9aa040c31d (patch) | |
tree | 853a5289b6c6bf37545867ce650e9c9243d40eec /test.conf | |
parent | 86e92fc4c9608d0e64783fac40c849b3a48fed77 (diff) | |
download | rsyslog-7720bcded1fe377b3c7defb0ea76dd9aa040c31d.tar.gz rsyslog-7720bcded1fe377b3c7defb0ea76dd9aa040c31d.tar.xz rsyslog-7720bcded1fe377b3c7defb0ea76dd9aa040c31d.zip |
fixed the bug, template engine should now work
Diffstat (limited to 'test.conf')
-rw-r--r-- | test.conf | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -22,8 +22,10 @@ $template precise,"%syslogpriority%,%syslogfacility%,%timegenerated%,%HOSTNAME%, $template RFC3164fmt,"<%PRI%>%TIMESTAMP% %HOSTNAME% %syslogtag%%msg%" #$template precise,"%syslogpriority%,%syslogfacility%,%timegenerated::fulltime%,%HOSTNAME%,%syslogtag%,%msg%\n",1024 $template usermsg," %syslogtag%%msg%\n\r" -$template wallmsg,"\r\n\7Message from syslogd@%HOSTNAME% at %timegenerated% ...\r\n %syslogtag%%msg%\n\r" -$template MySQLInsert,"insert iut, message, receivedat values (1, '%msg:::UPPERCASE%', '%timegenerated:::date-mysql%') into systemevents", SQL +#$template wallmsg,"\r\n\7Message from syslogd@%HOSTNAME% at %timegenerated% ...\r\n %syslogtag%%msg%\n\r" +$template MySQLInsert,"insert iut, message, receivedat values ('%iut%', '%msg:::UPPERCASE%', '%timegenerated:::date-mysql%') into systemevents\r\n", SQL + +$template wallmsg,"\r\n\7Message from syslogd@%HOSTNAME% at %timegenerated:::date-rfc3339% ...\r\n %syslogtag%%msg%\n\r" # Selector lines are now modified # The "action" (e.g. file logging) can be followed @@ -31,9 +33,9 @@ $template MySQLInsert,"insert iut, message, receivedat values (1, '%msg:::UPPERC # This is an example: #authpriv.* /var/log/secure,precise #*.* rger;usermsg -#*.* *;wallmsg -*.* *;MySQLInsert -*.* /home/rger/proj/rsyslog/logfile;precise +*.* *;wallmsg +#*.* *;MySQLInsert +#*.* /home/rger/proj/rsyslog/logfile;precise #*.* /home/rger/proj/rsyslog/logfile;UserMsg -*.* /home/rger/proj/rsyslog/tradfile;TraditionalFormat -*.* @172.19.2.16;RFC3164fmt +#*.* /home/rger/proj/rsyslog/tradfile;TraditionalFormat +#*.* @172.19.2.16;RFC3164fmt |