diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-05 07:56:57 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-05 07:56:57 +0100 |
commit | b3c8528b5087289c9b1f357f98f890190a5621a0 (patch) | |
tree | ad0cefb7902ab3de9b2d2fb72be2bcbb8ddadcbf /tests/testsuites | |
parent | 5402ba982fd8c9bb9ce7fab43ddabaa174ab0794 (diff) | |
download | rsyslog-b3c8528b5087289c9b1f357f98f890190a5621a0.tar.gz rsyslog-b3c8528b5087289c9b1f357f98f890190a5621a0.tar.xz rsyslog-b3c8528b5087289c9b1f357f98f890190a5621a0.zip |
added new property replacer option "date-rfc3164-buggyday"
primarily to ease migration from syslog-ng. See property replacer doc
for details.
Diffstat (limited to 'tests/testsuites')
-rw-r--r-- | tests/testsuites/parse-3164-buggyday.conf | 8 | ||||
-rw-r--r-- | tests/testsuites/samples.parse-3164-buggyday | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/testsuites/parse-3164-buggyday.conf b/tests/testsuites/parse-3164-buggyday.conf new file mode 100644 index 00000000..937f423a --- /dev/null +++ b/tests/testsuites/parse-3164-buggyday.conf @@ -0,0 +1,8 @@ +$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 in expect +$template expect,"%PRI%,%syslogfacility-text%,%syslogseverity-text%,%timestamp:::date-rfc3164-buggyday%,%hostname%,%programname%,%syslogtag%,%msg%\n" +*.* :omstdout:;expect diff --git a/tests/testsuites/samples.parse-3164-buggyday b/tests/testsuites/samples.parse-3164-buggyday new file mode 100644 index 00000000..e21df980 --- /dev/null +++ b/tests/testsuites/samples.parse-3164-buggyday @@ -0,0 +1,6 @@ +# in 3164-buggyday mode, we need to have a leading zero in front of the day +<38> Mar 7 19:06:53 example tag: testmessage (only date actually tested) +38,auth,info,Mar 07 19:06:53,example,tag,tag:, testmessage (only date actually tested) +# and now one with a complete date: +<38> Mar 17 19:06:53 example tag: testmessage (only date actually tested) +38,auth,info,Mar 17 19:06:53,example,tag,tag:, testmessage (only date actually tested) |