I'm trying to pin down if I'm misunderstanding the docs or if there's something going wrong here. With this config file:
$ModLoad imudp.so
$UDPServerAddress 216.143.nnn.nnn
$UDPServerRun 514
#$template as5400Format,"%syslogtag%%msg%\n"
#$template as5400Format,"%syslogtag%%msg:::drop-last-lf%\n"
$template as5400Format,"%syslogtag%%msg:::space-cc%\n"
:HOSTNAME,startswith,"peabody" /var/log/as5400/jfk/jfk.log;as5400Format
:HOSTNAME,startswith,"peabody" ~
*.* /var/log/as5400/test.log
I would expect that everything coming from a host with a name starting "peabody" would end up in jfk.log, that those messages would then be discarded, leaving everything else to end up in test.log.
I would further expect that in jfk.log, control characters would be converted into spaces and in test.log they would be passed through as-is.
Instead what I get is that
jfk.log:
650486165 Feb 12 03:25:36.323: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
650486166 Received:
650486167 OPTIONS sip:lata224gw.vantageip.net:5060 SIP/2.0#015
650486168 Via: SIP/2.0/UDP 216.143.148.116:5060;branch=z9hG4bKvbono6309811obojl241#015
looks like escape-cc is specified, and
test.log:
Feb 12 03:24:40 phlsniff rsyslogd: [origin software="rsyslogd" swVersion="3.11.0" x-pid="26893"] restart
Feb 12 03:25:36 peabodybge0.bw.dca.vantageip.net 650486165 Feb 12 03:25:36.323: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMs
g:
Feb 12 03:25:36 peabodybge0.bw.dca.vantageip.net 650486166 Received:
Feb 12 03:25:36 peabodybge0.bw.dca.vantageip.net 650486167 OPTIONS sip:lata224gw.vantageip.net:5060 SIP/2.0#015
Feb 12 03:25:36 peabodybge0.bw.dca.vantageip.net 650486168 Via: SIP/2.0/UDP 216.143.148.116:5060;branch=z9hG4bKvbono6309
811obojl241#015
has the local log lines as well as all the peabody stuff, and also looks like it's using escape-cc.
BTW, things look the same no matter which of those 3 template lines I have uncommented.
I am going to set things up to sniff the packets on the wire to see if all those "#015" bits are in the UDP packets as literals, but they don't show up in the local log files on peabody, which is receiving them from a 3rd device and both logging them locally and forwarding them to the server running rsyslog, so I suspect they're in the packets as control characters.


