summaryrefslogtreecommitdiffstats
path: root/tests/testsuites/snare_ccoff_udp.conf
blob: 6abbedf410d4bd26266d06d0584a19c52af92c31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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