diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2004-11-22 15:56:31 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2004-11-22 15:56:31 +0000 |
commit | f8a0aa5bf937099af688e5fc7b2f4a252b2df246 (patch) | |
tree | bedf6f6246a94fff92a69ec238da5d2bb1d7289e /test.conf | |
parent | c20ca039710ef57cd6109e572e8be1fccfbeb115 (diff) | |
download | rsyslog-f8a0aa5bf937099af688e5fc7b2f4a252b2df246.tar.gz rsyslog-f8a0aa5bf937099af688e5fc7b2f4a252b2df246.tar.xz rsyslog-f8a0aa5bf937099af688e5fc7b2f4a252b2df246.zip |
remote forwarding now also integrated in new code
Diffstat (limited to 'test.conf')
-rw-r--r-- | test.conf | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test.conf b/test.conf new file mode 100644 index 00000000..54ae4739 --- /dev/null +++ b/test.conf @@ -0,0 +1,31 @@ +# 2004-11-17 rgerhards: work copy of the new syslog.conf +# We try to keep things as consisent with existing syslog implementation +# as possible. We use "$" to start lines that contain new dirctives. +# Set syslogd options + +$template Name,"Text %var% Text",<max-length> +# To escape: +# % = \% +# \ = \\ +# --> '\' is used to escape (as in C) +#$template TraditionalFormat,"%UxTradMsg%\n",1024 +$template MySQLInsert,"insert iut, msg values (1, '%msg') into systemevents" +$template TraditionalFormat,"%timegenerated% %hostname% %syslogtag%%msg%\n" +$template precise,"%syslogpriority%,%syslogfacility%,%timegenerated%,%hostname%,%syslogtag%,%msg%\n",1024 +$template RFC3164fmt,"<%PRI%> %timegenerated% %hostname% %syslogtag%%msg%" +#$template RFC3164fmt,"%syslogpriority%,%syslogfacility% %timegenerated% %hostname% %syslogtag%%msg%",1024 +#$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" + +# 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 +*.* /home/rger/proj/rsyslog/logfile;precise +#*.* /home/rger/proj/rsyslog/logfile;UserMsg +*.* /home/rger/proj/rsyslog/tradfile;TraditionalFormat +*.* @172.19.2.16;RFC3164fmt |