summaryrefslogtreecommitdiffstats
path: root/tests/testsuites/snare_ccoff_udp2.conf
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-21 18:33:14 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-21 18:33:14 +0100
commit95cde529cc2d2aab2047f5ab2c52d9cd8ba23f31 (patch)
tree7549edc00e5635cdb98570efe1b78e33e888fd44 /tests/testsuites/snare_ccoff_udp2.conf
parent091e4dc1b92db7e516d30df659a46b969274d6bf (diff)
downloadrsyslog-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_udp2.conf')
-rw-r--r--tests/testsuites/snare_ccoff_udp2.conf17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/testsuites/snare_ccoff_udp2.conf b/tests/testsuites/snare_ccoff_udp2.conf
new file mode 100644
index 00000000..9115c14f
--- /dev/null
+++ b/tests/testsuites/snare_ccoff_udp2.conf
@@ -0,0 +1,17 @@
+# Similar to snare_ccoff_udp_2, but with a different template. This template
+# has triggered problems in the past, thus a test is granted.
+# 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
+
+# we need to use a fixed timestamp, as otherwise we can not compare :(
+# This could be improved in later versions of the testing tools, but requires
+# modification to the rsyslog core...
+$template fmt,"insert into windows (Message, Facility,FromHost, Priority, DeviceReportedTime, ReceivedAt, InfoUnitID, SysLogTag) values ('%msg:::space-cc%', %syslogfacility%, '%HOSTNAME%',%syslogpriority%, '20100321185328', '20100321185328', %iut%, '%syslogtag:::space-cc%')\n",sql
+*.* :omstdout:;fmt