Hi,
Glad to find this community, I'm struggling with parsing syslog from Cisco ASA/Firepower, I've learned Cisco syslog isn't exactly RFC5424 compatible, despite the console stating so.
Symptom:
I'm getting the following logs:
2021-02-03 23:57:56 +0000 [warn]: #0 failed to parse message data="<165>2021-02-03T23:57:55Z FIREWALL_HOSTNAME : %FTD-5-111008: User 'enable_1' executed the 'more system:running-config' command."
Command issued:
tail -f 1 /var/log/td-agent/td-agent.log
My environment:
td-agent 1.11.2
My configuration:
<source>
@type syslog
port 1470
bind 0.0.0.0
tag system
<parse>
@type regexp
expression /\<(?<priority>[0-9]+)\>(?<time>[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z) (?<host>[^ ]*) : (?<id>[^ ]*) (?<message>.*)/
time_key time
time_format %Y-%m-%dT%H:%M:%SZ"
</parse>
</source>
According to both websites, the regex I've wrote should match the syslog above, see:
I'm lost and confused, if anyone can help, I'll be thankful.
Thanks in advance,
Renan