You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rfc3164/README.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,18 @@ For Cisco IOS configuration details, see the `WithCiscoIOSComponents()` function
122
122
123
123
**Important**: Your parser configuration must match your Cisco device configuration. The parser cannot auto-detect which components are present because they share similar formats (mostly digits followed by colon).
124
124
125
+
What happens when there's a mismatch?
126
+
127
+
```go
128
+
// Device sends both message counter and sequence number: <189>237: 000485: *Jan 8 19:46:03.295: ...
129
+
// Parser configured for message counter only (mismatch):
// Result: Parse error "expecting a sequence number (from 1 to max 255 digits) [col 10]"
134
+
// Parser found digits where it expects timestamp, indicating sequence parsing should be enabled.
135
+
```
136
+
125
137
##### Cisco Device Configuration
126
138
127
139
```cisco
@@ -157,4 +169,4 @@ RFC3164 has an underspecified format, leading to parsing challenges:
157
169
158
170
**Component Ordering**: When Cisco components are selectively disabled on the device but the parser expects them, parsing will fail or produce incorrect results. Always match your parser configuration to your device configuration.
159
171
160
-
**Structured Data**: Cisco IOS messages with RFC5424-style structured data blocks (from `logging host X session-id` or `sequence-num-session`) are not currently supported. See issue #[TBD] for details.
172
+
**Structured Data**: Cisco IOS messages with RFC5424-style structured data blocks (from `logging host X session-id` or `sequence-num-session`) are not currently supported. See issue #35 for details.
0 commit comments