-
Notifications
You must be signed in to change notification settings - Fork 474
[iptables] added optional space to process vyos logs #14948
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
base: main
Are you sure you want to change the base?
[iptables] added optional space to process vyos logs #14948
Conversation
6ef3a27
to
648e7a4
Compare
🚀 Benchmarks reportTo see the full report comment with |
@@ -57,7 +57,7 @@ processors: | |||
- '%{IPTABLES_HOSTNAME}%{GREEDYDATA}\[%{UBIQUITI_LABEL}\]%{IPTABLES}%{SPACE}' | |||
- '%{IPTABLES_ACTION}%{GREEDYDATA}%{IPTABLES}%{SPACE}' | |||
- '%{IPTABLES_HOSTNAME}%{SPACE}%{UDM_LOGS}%{IPTABLES_IP_PAYLOAD}' | |||
- '%{GREEDYDATA}\[%{UBIQUITI_LABEL}\]%{IPTABLES}%{SPACE}' | |||
- '%{GREEDYDATA}\[%{UBIQUITI_LABEL}\](%{SPACE})?%{IPTABLES}%{SPACE}' |
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.
Why the trailing %{SPACE}
? Is that necessary? The pattern is not anchored with $
so IIUC it will effectively ignore trailing space at the end. It's not covered by the test case either.
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.
Regarding the trailing space at the end of these patterns, I think it's not necessary. I tested it and it made no difference to the expected logs & current test cases. I will remove it from the patterns.
💚 Build Succeeded
History
|
|
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.
LGTM
Proposed commit message
Checklist
changelog.yml
file.- [ ] I have verified that any added dashboard complies with Kibana's Dashboard good practicesHow to test this PR locally
Run and observe the new pipeline test to see expected corrected results.
Related Issues
Closes #10881