Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Filebeat] Syslog parse error with Cisco Switch logs #10654

Closed
andrewkroh opened this issue Feb 8, 2019 · 4 comments · Fixed by #10760
Closed

[Filebeat] Syslog parse error with Cisco Switch logs #10654

andrewkroh opened this issue Feb 8, 2019 · 4 comments · Fixed by #10760
Assignees
Labels

Comments

@andrewkroh
Copy link
Member

I am trying to ingest syslog data from a Cisco 3750 switch and I get an error from Filebeat.

Filebeat error:

  • {"level":"error","timestamp":"2019-02-08T18:55:32.305Z","logger":"syslog","caller":"syslog/input.go:131","message":"can't parse event as syslog rfc3164","message":"<190>589265: Feb 8 18:55:31.306: %SEC-6-IPACCESSLOGP: list 177 denied udp 10.100.7.196(53640) -> 10.100.7.255(15600), 1 packet"}

PCAP of Syslog Traffic:

Version:

  • filebeat version 7.0.0 (arm), libbeat 7.0.0 [3dd1f50 built 2019-02-06 19:37:38 +0000 UTC]

Filebeat Config:

  filebeat.inputs:
    - type: syslog
      protocol.udp:
        host: ':9002'

Cisco 3750 Config:

  • logging host 10.100.5.130 transport udp port 9002
@andrewkroh andrewkroh added the Filebeat Filebeat label Feb 8, 2019
@ph ph added the bug label Feb 8, 2019
@ph ph self-assigned this Feb 8, 2019
@andrewkroh
Copy link
Member Author

andrewkroh commented Feb 8, 2019

This document states that the non-compliant part of the message is a sequence number. It also suggests how to disable the sequence number, but for my version of IOS or hardware this had no effect.

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750x_3560x/software/release/12-2_55_se/configuration/guide/3750xscg/swlog.html#pgfId-1030180

seq no:timestamp: %facility-severity-MNEMONIC:description

@ph
Copy link
Contributor

ph commented Feb 12, 2019

I added support for the sequence number but I am running into another issue concerning the host format still need some work on my side.

@ph ph closed this as completed in #10760 Feb 18, 2019
ph added a commit that referenced this issue Feb 18, 2019
* Adding Cisco support for the Syslog parser

Add support for the "sequence" number in the log format send by Cisco switch devices.

Fixes: #10654
@emes
Copy link

emes commented Jul 18, 2019

@ph would you consider making the colon after the sequence number optional? Newer/non-Catalyst Cisco switches do not include the colon and you cannot currently disable sequence numbers.

With:

<190>589265: Feb 8 18:55:31.306: %SEC-11-IPACCESSLOGP: list 177 denied udp 10.0.0.1(53640) -> 10.100.0.1(15600), 1 packet

Without:

<190>1 2019-07-17T19:42:13-05:00 newswitch AAA - CONNECT - New http connection for user ms, source 192.168.30.51 destination 192.168.10.4 ACCEPTED

Would be great appreciated!

@ph
Copy link
Contributor

ph commented Sep 13, 2019

@emes Yes, can you create an issue for that? sorry for the delay.

hrak pushed a commit to hrak/beats that referenced this issue Mar 4, 2020
Adding Cisco support for the Syslog parser

* Adding Cisco support for the Syslog parser

Add support for the "sequence" number in the log format send by Cisco switch devices.

Fixes: elastic#10654, elastic#15979

(cherry picked from commit dd92b6f)
ph added a commit that referenced this issue Mar 5, 2020
Adding Cisco support for the Syslog parser

* Adding Cisco support for the Syslog parser

Add support for the "sequence" number in the log format send by Cisco switch devices.

Fixes: #10654, #15979

(cherry picked from commit dd92b6f)

Co-authored-by: Pier-Hugues Pellerin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants