-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Filebeat] Improve Suricata error handling #23236
Merged
andrewkroh
merged 2 commits into
elastic:master
from
andrewkroh:bugfix/fb/suricata-fixes-alias-conflict
Jan 5, 2021
Merged
[Filebeat] Improve Suricata error handling #23236
andrewkroh
merged 2 commits into
elastic:master
from
andrewkroh:bugfix/fb/suricata-fixes-alias-conflict
Jan 5, 2021
Conversation
This file contains 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
andrewkroh
added
bug
Filebeat
Filebeat
needs_backport
PR is waiting to be backported to other branches.
Team:Security-External Integrations
labels
Dec 22, 2020
botelastic
bot
added
needs_team
Indicates that the issue/PR needs a Team:* label
and removed
needs_team
Indicates that the issue/PR needs a Team:* label
labels
Dec 22, 2020
Collaborator
leehinman
approved these changes
Dec 22, 2020
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.
I really like the error message for each pipeline.
This fixes several errors processing EVE logs. Fix null dereference of suricata.eve.http.status. Even for http events it can be null. Remove unused field mapping for suricata.eve.flow.end Improve error.message details in pipeline on_failure handlers. Add tags to script processors to improve error messages. Rename suricata.eve.http.http_port to url.port. Add remove processor to on_failure handler to remove any alias field to prevent indexing errors. Ignore errors parsing TLS version. The pipeline got a value of "UNDETERMINED" that caused an error. Ignore errors parsing TLS subject/issuer DNs with kv. If a value contain the value_split string like "Nutanix, Inc." it can fail.
andrewkroh
force-pushed
the
bugfix/fb/suricata-fixes-alias-conflict
branch
from
December 22, 2020 23:59
6bad930
to
30dcb0e
Compare
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
run tests |
6 tasks
andrewkroh
added
v7.12.0
and removed
needs_backport
PR is waiting to be backported to other branches.
labels
Jan 5, 2021
v1v
added a commit
to v1v/beats
that referenced
this pull request
Jan 7, 2021
This reverts commit 11c5367.
v1v
added a commit
to v1v/beats
that referenced
this pull request
Jan 7, 2021
This reverts commit 808b041.
v1v
added a commit
to v1v/beats
that referenced
this pull request
Jan 7, 2021
This reverts commit 11c5367.
andrewkroh
added a commit
to andrewkroh/beats
that referenced
this pull request
Jan 11, 2021
This fixes several errors processing EVE logs. Fix null dereference of suricata.eve.http.status. Even for http events it can be null. Remove unused field mapping for suricata.eve.flow.end Improve error.message details in pipeline on_failure handlers. Add tags to script processors to improve error messages. Rename suricata.eve.http.http_port to url.port. Add remove processor to on_failure handler to remove any alias field to prevent indexing errors. Ignore errors parsing TLS version. The pipeline got a value of "UNDETERMINED" that caused an error. Ignore errors parsing TLS subject/issuer DNs with kv. If a value contain the value_split string like "Nutanix, Inc." it can fail. (cherry picked from commit 11c5367)
andrewkroh
added a commit
that referenced
this pull request
Jan 11, 2021
…#23369) * Improve Suricata error handling (#23236) This fixes several errors processing EVE logs. Fix null dereference of suricata.eve.http.status. Even for http events it can be null. Remove unused field mapping for suricata.eve.flow.end Improve error.message details in pipeline on_failure handlers. Add tags to script processors to improve error messages. Rename suricata.eve.http.http_port to url.port. Add remove processor to on_failure handler to remove any alias field to prevent indexing errors. Ignore errors parsing TLS version. The pipeline got a value of "UNDETERMINED" that caused an error. Ignore errors parsing TLS subject/issuer DNs with kv. If a value contain the value_split string like "Nutanix, Inc." it can fail. (cherry picked from commit 11c5367) * Update suricata fields in filebeat (#23372) Co-authored-by: Jaime Soriano Pastor <jaime.soriano@elastic.co>
6 tasks
andrewkroh
added a commit
to andrewkroh/beats
that referenced
this pull request
Feb 2, 2021
This fixes several errors processing EVE logs. Fix null dereference of suricata.eve.http.status. Even for http events it can be null. Remove unused field mapping for suricata.eve.flow.end Improve error.message details in pipeline on_failure handlers. Add tags to script processors to improve error messages. Rename suricata.eve.http.http_port to url.port. Add remove processor to on_failure handler to remove any alias field to prevent indexing errors. Ignore errors parsing TLS version. The pipeline got a value of "UNDETERMINED" that caused an error. Ignore errors parsing TLS subject/issuer DNs with kv. If a value contain the value_split string like "Nutanix, Inc." it can fail. (cherry picked from commit 11c5367)
andrewkroh
added a commit
that referenced
this pull request
Feb 4, 2021
#23807) This fixes several errors processing EVE logs. Fix null dereference of suricata.eve.http.status. Even for http events it can be null. Remove unused field mapping for suricata.eve.flow.end Improve error.message details in pipeline on_failure handlers. Add tags to script processors to improve error messages. Rename suricata.eve.http.http_port to url.port. Add remove processor to on_failure handler to remove any alias field to prevent indexing errors. Ignore errors parsing TLS version. The pipeline got a value of "UNDETERMINED" that caused an error. Ignore errors parsing TLS subject/issuer DNs with kv. If a value contain the value_split string like "Nutanix, Inc." it can fail. (cherry picked from commit 11c5367)
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.
What does this PR do?
This fixes several errors processing EVE logs.
Why is it important?
Errors were preventing
remove
processors from running. This left concrete values in the events for fields that are mapped as alias. Those events were rejected.Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.