rsyslog/tests/testsuites/pmsnare_ccbackslash.conf
2017-06-05 11:44:11 -04:00

25 lines
1000 B
Plaintext

# pmsnare_ccbackslash.conf
# This tests events with the pmsnare module when control characters are escaped with a backslash prefix.
# It's based on rgerhards' snare_ccdefault_udp.conf.
# added 2017-05-19 Shane Lawrence
$EscapeControlCharactersOnReceive on
$ControlCharacterEscapePrefix \\
$ModLoad ../plugins/omstdout/.libs/omstdout
$ModLoad ../contrib/pmsnare/.libs/pmsnare
$IncludeConfig nettest.input.conf # This picks the to be tested input from the test driver!
# Use the pmsnare parser, then fall through to the default built-in modules.
$RulesetParser rsyslog.snare
$RulesetParser rsyslog.rfc5424
$RulesetParser rsyslog.rfc3164
$ErrorMessagesToStderr 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%,%programname%,%syslogtag%,%msg%\n"
*.* :omstdout:;fmt