diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2004-11-30 16:07:59 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2004-11-30 16:07:59 +0000 |
commit | d9b4c8bcb732e021f11a39a3a4ba825717b42065 (patch) | |
tree | 3221acc2ef9a12d8cacd22d1fb027cde2101d209 /test.conf | |
parent | 723c8b552ef0a7b12a772d4ba070bd5f4e1c3b7d (diff) | |
download | rsyslog-d9b4c8bcb732e021f11a39a3a4ba825717b42065.tar.gz rsyslog-d9b4c8bcb732e021f11a39a3a4ba825717b42065.tar.xz rsyslog-d9b4c8bcb732e021f11a39a3a4ba825717b42065.zip |
added default templates - now config file more compatible to stock syslogd
Diffstat (limited to 'test.conf')
-rw-r--r-- | test.conf | 18 |
1 files changed, 6 insertions, 12 deletions
@@ -15,33 +15,27 @@ # % = \% # \ = \\ # --> '\' is used to escape (as in C) -#$template TraditionalFormat,"%UxTradMsg%\n",1024 -#$template MySQLInsert,"insert iut, msg values (1, '%msg%') into systemevents",SQL,MAXSIZE=1024 $template TraditionalFormat,"%timegenerated% %HOSTNAME% %syslogtag%%msg%\n" $template precise,"%syslogpriority%,%syslogfacility%,%timegenerated%,%HOSTNAME%,%syslogtag%,%msg%\n",1024 $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 usermsg," XXXX%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 ('%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" +#$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 # by a comma and then the name of a template to use. # This is an example: #authpriv.* /var/log/secure,precise -#*.* rger;usermsg -*.* *;wallmsg +*.* rger #*.* *;MySQLInsert #*.* /home/rger/proj/rsyslog/logfile;precise #*.* /home/rger/proj/rsyslog/logfile;UserMsg -<<<<<<< test.conf #*.* /home/rger/proj/rsyslog/tradfile;TraditionalFormat +*.* /home/rger/proj/rsyslog/tradfile #*.* @172.19.2.16;RFC3164fmt -*.* >localhost,AdisconDB,root, -======= -#*.* /home/rger/proj/rsyslog/tradfile;TraditionalFormat -#*.* @172.19.2.16;RFC3164fmt ->>>>>>> 1.4 +#*.* @172.19.2.16 +#*.* >localhost,AdisconDB,root, |