summaryrefslogtreecommitdiffstats
path: root/test.conf
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2004-11-25 10:03:18 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2004-11-25 10:03:18 +0000
commit7720bcded1fe377b3c7defb0ea76dd9aa040c31d (patch)
tree853a5289b6c6bf37545867ce650e9c9243d40eec /test.conf
parent86e92fc4c9608d0e64783fac40c849b3a48fed77 (diff)
downloadrsyslog-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.conf16
1 files changed, 9 insertions, 7 deletions
diff --git a/test.conf b/test.conf
index 1957f53d..c7a994db 100644
--- a/test.conf
+++ b/test.conf
@@ -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