rsyslog/tests/testsuites/parse-nodate.conf
2010-03-19 15:14:09 +01:00

15 lines
758 B
Plaintext

# test is a test config that does not include the timestamp. This is necessary to
# test some illformed messages that do not contain a date. In that case, the system's
# current timestamp is used, and that of course is a bit hard to compare against
# a fixed template. So the solution in this case is to use a format that does
# not contain any timestamp. Maybe not optimal, but it works ;)
# rgerhards, 2010-03-19
$ModLoad ../plugins/omstdout/.libs/omstdout
$IncludeConfig nettest.input.conf # This picks the to be tested input from the test driver!
$ErrorMessagesToStderr off
# use a special format that we can easily parse
$template fmt,"%PRI%,%syslogfacility-text%,%syslogseverity-text%,%hostname%,%programname%,%syslogtag%,%msg%\n"
*.* :omstdout:;fmt