[Cisco IOS] Add support for severity letter in cisco logs#19169
Merged
Conversation
|
Pinging @elastic/integration-experience (Team:Integration-Experience) |
Contributor
Vale Linting ResultsSummary: 4 suggestions found 💡 Suggestions (4)
The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
🚀 Benchmarks reportTo see the full report comment with |
qcorporation
approved these changes
May 22, 2026
Contributor
qcorporation
left a comment
There was a problem hiding this comment.
besides the changelog change that needs to be updated. it looks fine
Updated the link for the enhancement in version 1.36.0.
💚 Build Succeeded
History
cc @bhapas |
|
Package cisco_ios - 1.36.0 containing this change is available at https://epr.elastic.co/package/cisco_ios/1.36.0/ |
This was referenced May 25, 2026
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.
Proposed commit message
Fix cisco_ios log parsing for minimal syslog format and letter-based severity codes.
Summary
Some Cisco devices (notably Small Business switches) emit syslog messages in a minimal
<PRI>%FACILITY-SEVERITY-MNEMONIC: messageformat with no timestamp, hostname, orsequence number after the PRI tag. Additionally, these devices use single-letter severity
codes (A/C/E/W/N/I/D) instead of the standard numeric 0-7 values.
Both issues caused the ingest pipeline's grok processors to fail:
grok_header— all 8 existing patterns required at least a timestamp, IP, or hostnameafter the
<PRI>tag, so the minimal format matched none of them. Fixed by adding afallback pattern
'^%{CISCO_PRIORITY_MSGCOUNT}%{GREEDYDATA:_temp_.message}$'at theend of the pattern list.
CISCO_PRIORITY_MSGCOUNTis required (not optional) so thefallback only fires when a PRI tag is present.
grok_message—%{POSINT:event.severity}only matched digits. Fixed by adding asecond pattern that captures a single uppercase letter into a new
cisco.ios.mnemonicfield, preserving the original letter value (A through D) without translation. This
avoids conflating letter-based and numeric severity semantics.
Example logs now parsed correctly:
Checklist
changelog.ymlfile.Author's Checklist
How to test this PR locally