- Notifications
You must be signed in to change notification settings - Fork 513
[cisco_ios] Fix parsing of FQDN hostnames #13450
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
Conversation
Cisco hostnames support digits as the first character in the hostname, but this was not supported by the ingest pipeline, causing errors when ingesting documents with such names. This updates the pipeline to properly parse hostnames with a leading digit. This does not allow all-digit hostnames. While this could be a supported Cisco hostname, it causes confustion with the Cisco sequence number in some output formats, as the position of hostname and sequence number can be similar depending on the output format, and the grok patterns will match on both. So this excludes all-digit hostnames to maintain compatibility with all Cisco IOS output formats.
| Pinging @elastic/sec-deployment-and-devices (Team:Security-Deployment and Devices) |
a4b2ed0 to 82b5566 Compare 82b5566 to c5d2971 Compare 🚀 Benchmarks reportTo see the full report comment with |
packages/cisco_ios/data_stream/log/elasticsearch/ingest_pipeline/default.yml Outdated Show resolved Hide resolved
packages/cisco_ios/data_stream/log/_dev/test/pipeline/test-fqdn.log-expected.json Show resolved Hide resolved
packages/cisco_ios/data_stream/log/elasticsearch/ingest_pipeline/default.yml Outdated Show resolved Hide resolved
packages/cisco_ios/data_stream/log/elasticsearch/ingest_pipeline/default.yml Outdated Show resolved Hide resolved
|
💚 Build Succeeded
History
|
qcorporation left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates
| Package cisco_ios - 1.30.1 containing this change is available at https://epr.elastic.co/package/cisco_ios/1.30.1/ |




Proposed commit message
In some cases messages with FQDN hostnames were not being parsed properly. The message body and header were not being properly parsed, so some header data (e.g.
event.code) was not being parsed. This corrects parsing of these cases.The problem was the most greedy case of consuming the most of the body into
messagewas hit before the case of properly parsing more header fields, so rearranging the patterns fixes things. This also reduces the number of patterns by combining very similar patterns.Checklist
changelog.ymlfile.[ ] I have verified that any added dashboard complies with Kibana's Dashboard good practices