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

Extend RFC3164 parser to support Cisco iOS logs #22

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

alistairking
Copy link

These devices seem to send non-standard logs that include a sequence number, and a couple of extra characters (for good luck, I assume).

For example:

    10.51.101.233.50433 > 10.51.101.164.514: SYSLOG, length: 112 Facility local7 (23), Severity notice (5)
        Msg: 485: *Jan  8 21:50:03.406: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback100, changed state to up

Note the 485: * here. This is the sequence number (and a * -- no idea).

It also includes a ms-precision timestamp.

This is the first time I've ever written ragel code (first time I've even heard of it), so there's a pretty good chance that I got something wrong, or sub-optimal. I'm happy to make changes as you see fit.

These devices seem to send non-standard logs that include a sequence
number, and a couple of extra characters (for good luck, I assume).

For example:
```
    10.51.101.233.50433 > 10.51.101.164.514: SYSLOG, length: 112 Facility local7 (23), Severity notice (5)
        Msg: 485: *Jan  8 21:50:03.406: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback100, changed state to up
```

Note the `485: *` here. This is the sequence number (and a `*` -- no
idea).

It also includes a ms-precision timestamp.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant