Open
Conversation
280070e to
935b310
Compare
mirceaulinic
approved these changes
Feb 9, 2026
Member
mirceaulinic
left a comment
There was a problem hiding this comment.
Very nice! Would you be able to add some tests as well @fakrul? Let me know if you need any guidance.
(Yes, I'm aware many things are broken here right now, but would be great to have some basic tests)
Author
@mirceaulinic I have updated the MR with test output. will add some test too. |
935b310 to
a044fb8
Compare
a044fb8 to
dd1a022
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for parsing syslog messages from Coriant / Infinera
Changes
Infinera Log Format
Infinera devices emit RFC5424-style syslog messages with the following structure:
Example:
<85>1 2026-01-20T05:02:17+00:00 dci01.abc01@:: SECURITY 401 [meta sequenceId="735"] "time-stamp":2026-01-20T05:02:17Z;"session-id":1234;"session-type":cli;"user-name":admin;"event/action":logged inSupported Message Types
Per Infinera vendor documentation:
OpenConfig Mapping
USER_LOGIN and USER_LOGOUT events are mapped to:
openconfig-systemmodelsystem/aaa/authentication/users/user/{user}/state/usernameTesting
Tested locally with sample Infinera syslog messages. Hostname extraction correctly captures device name (e.g.,
dci01.abc01fromdci01.abc01@::).Local Test
Raw Log: <85>1 2026-01-20T05:02:17+00:00 dci01.waw02@:: SECURITY 401 [meta sequenceId="735"] "time-stamp":2026-01-20T05:02:17Z;"session-id":2400:cb00:36:1092::ac46:1c5:37926;"session-type":cli;"user-name":rancid;"event/action":logged in
Validation:
Future Work
Additional message definitions can be added for ALARM, EVENT, and CONFIGURATION message types as needed.