Cherry-pick #10760 to 6.8: Adding Cisco support for the Syslog parser#15980
Cherry-pick #10760 to 6.8: Adding Cisco support for the Syslog parser#15980ph merged 1 commit intoelastic:6.8from
Conversation
|
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
1 similar comment
|
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
|
Thank you for contributing. The backport seems to cause some CI failures in some filebeat modules that require the syslog input. @ph any idea if we are missing some other commits? For example: |
|
sorry @ChrsMark I've missed the ping on this. This is indeed strange the main PR was indeed green when merged. Looking at the tables failures in the test for iptable the expected object doesn't match anymore but we do have a partial document extracted. So I think we are missing commit for surricata? |
|
Going to build the 6.8 branch locally and see what is going on. |
|
Ok, plain 6.8 branch fails with the same errors. |
* Fix the iptables issues The fileset of the iptables test didn't skip the @timestamp field, so I have included the iptables.log data to the list of dataset to remove. I also changed the assertion slighly to be relevant on the order of the expectation and instead of dropping the JSON output in the log we will display the difference as a diff. Fix issues with #15980
|
@hrak do you mind rebasing this PR on 6.8? |
Adding Cisco support for the Syslog parser * Adding Cisco support for the Syslog parser Add support for the "sequence" number in the log format send by Cisco switch devices. Fixes: elastic#10654, elastic#15979 (cherry picked from commit dd92b6f)
|
@ph done, looking much better now. One unrelated test failure in metricbeat tests: |
|
LGTM. Failing test is unrelated. @ph you want to have a final look? |
|
Jenkins, test this. |
|
@hrak thanks it's merged |
Adding Cisco support for the Syslog parser
Add support for the "sequence" number in the log format send by Cisco switch devices.
Fixes: #10654, #15979
(cherry picked from commit dd92b6f)
What does this PR do?
Apart from adding support for the Cisco sequence number in syslog messages, this PR fixes several issues with the hostname parser (f.e. hostnames with dashes, IPv6 addresses in hostname field)
Why is it important?
The hostname parser in the syslog input in filebeat 6 is currently broken, resulting in everything after the timestamp of a rfc3164 syslog message ending up in the message field (hostname, program name, PID, message)
Checklist
- [ ] My code follows the style guidelines of this project- [ ] I have commented my code, particularly in hard-to-understand areas- [ ] I have made corresponding changes to the documentation- [ ] I have made corresponding change to the default configuration files- [ ] I have added tests that prove my fix is effective or that my feature works