diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-21 18:33:14 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-21 18:33:14 +0100 |
commit | 95cde529cc2d2aab2047f5ab2c52d9cd8ba23f31 (patch) | |
tree | 7549edc00e5635cdb98570efe1b78e33e888fd44 /tests/testsuites/snare_ccoff_udp.conf | |
parent | 091e4dc1b92db7e516d30df659a46b969274d6bf (diff) | |
download | rsyslog-95cde529cc2d2aab2047f5ab2c52d9cd8ba23f31.tar.gz rsyslog-95cde529cc2d2aab2047f5ab2c52d9cd8ba23f31.tar.xz rsyslog-95cde529cc2d2aab2047f5ab2c52d9cd8ba23f31.zip |
added some more tests for severely ill-formed snare messages
also improved nettester testbench tool a bit
Diffstat (limited to 'tests/testsuites/snare_ccoff_udp.conf')
-rw-r--r-- | tests/testsuites/snare_ccoff_udp.conf | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/testsuites/snare_ccoff_udp.conf b/tests/testsuites/snare_ccoff_udp.conf new file mode 100644 index 00000000..6abbedf4 --- /dev/null +++ b/tests/testsuites/snare_ccoff_udp.conf @@ -0,0 +1,21 @@ +# This test some real-world snare cases. I don't like snare (no wonder +# as I have written EventReporter, the ultimate Windows-to-Syslog tool), +# but besides that snare generates severely malformed messages that +# really stress-test the rsyslog engine. They deserve to be beaten by someone ;) +# This test needs to be run over UDP only, as snare puts LF INTO some of the messages, +# which makes it impossible to try these out via traditional syslog/tcp +# added 2010-03-21 rgerhards +$ModLoad ../plugins/omstdout/.libs/omstdout +$IncludeConfig nettest.input.conf # This picks the to be tested input from the test driver! + +$ErrorMessagesToStderr off + +# snare usses HT as field delimiter, so many users have turned off +# control character escaping to make any sense at all from these messages... +$EscapeControlCharactersOnReceive off + +# use a special format that we can easily check. We do NOT include a timestamp because +# the malformed snare messages usually do not contain one (and we can not check against +# the system time in our test cases). +$template fmt,"%PRI%,%syslogfacility-text%,%syslogseverity-text%,%hostname%,%programname%,%syslogtag%,%msg%\n" +*.* :omstdout:;fmt |