I'm running rsyslog-4.1.7 and I'm having problem to get it parsing the "emblem" formatted message properly. The relevant configurations are:
...
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
...
$template syslog-ng,"insert into logs(host, facility, priority, level, tag, datetime, program, msg) values ('%hostname%', '%syslogfacility-text%', '%pri%',
'%syslogseverity%', '%syslogtag%', '%timegenerated:::date-mysql%', '%programname% ', '%msg%')", SQL
#$template syslog-ng,"insert into logs(host, facility, priority, level, tag, datetime, program, msg) values ('%hostname%', '%syslogfacility-text%', '%pri-tex
t%', '%syslogseverity-text%', '%syslogtag%', '%timegenerated:::date-mysql%', '%programname%', '%msg%')", SQL
local4.*;local5.* :ommysql:127.0.0.1,syslog,syslogadmin,syslogadmin;syslog-ng
The raw message from TCPDUMP looks like the following:
yslog message: LOCAL5.INFO: May 04 2009 18:08:49: %ASA-6-302013: Built outbound TCP connection 29387851 for PRODEXT:207.16.69.84/20 (207.16.69.84/20) to Internal:10.32.69.89/52087 (10.32.69.89/52087)\n
1010 1... = Facility: LOCAL5 - reserved for local use (21)
.... .110 = Level: INFO - informational (6)
Message: May 04 2009 18:08:49: %ASA-6-302013: Built outbound TCP connection 29387851 for PRODEXT:207.16.69.84/20 (207.16.69.84/20) to Internal:10.32.69.89/52087 (10.32.69.89/52087)\n
When I redirect the logs into a plain text for testing, it appears as:
May 4 18:09:47 alffwdp01 %ASA-6-302016: Teardown UDP connection 29391160 for DMZ:10.32.100.231/55466 to Internal:10.32.1.21/53 duration 0:00:00 bytes 198
The problem I'm having is it doesn't display the proper severity level. If you need more information, please let me know how I can provide them.
Thanks in advance for any help.


