Filebeat cisco/ios fails to parse default logs for some devices #28674
Labels
bug
Filebeat
Filebeat
help wanted
Indicates that a maintainer wants help on an issue or pull request
Stalled
For confirmed bugs, please report:
Some Cisco IOS devices are logging by default in a format different than the expected by the module. Examples:
The first two numbers followed by a colon are probably a sequence number and a message counter (
logging count
orlogging message-count
).Example from another device (ASR-9001 (OS : Cisco IOS XR 6.7.3))
Above resulted from configuring with:
The module is currently expecting logs in the format:
That is
<timestamp(no year)> <ip> <seq.no>: <timestamp(no year)>: %[...]
.Another troublesome log from a different IOS device:
Results in a conversion to long error due to the sequence number being in hex:
The current parsing seems to be partially done in the syslog input, see #10760.
The suggested solution is to switch to udp input and use a custom grok expression similar to what cisco/asa and cisco/ftd do.
The text was updated successfully, but these errors were encountered: