-
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/module/crowdstrike: fix LocalIP and UserIP with N/A value #32896
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
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.
Thank you for the contribution.
Please add a test and a line in the CHANGELOG.next.asciidoc file under the Bugfixes for Filebeat; something along the lines of - Fix handling of invalid UserIP and LocalIP values. {pull}32896[32896]
.
x-pack/filebeat/module/crowdstrike/falcon/ingest/auth_activity_audit.yml
Outdated
Show resolved
Hide resolved
x-pack/filebeat/module/crowdstrike/falcon/ingest/detection_summary.yml
Outdated
Show resolved
Hide resolved
x-pack/filebeat/module/crowdstrike/falcon/ingest/user_activity_audit.yml
Outdated
Show resolved
Hide resolved
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
This pull request doesn't have a |
/test |
Are you able to regenerate the test files? This can be done with
in the x-pack/filebeat directory. If not, please let me know and will do that for you. |
Unfortunately the |
The following changes will fix the tests (note that the whitespace changes are significant). diff --git a/x-pack/filebeat/module/crowdstrike/falcon/test/falcon-audit-events.log b/x-pack/filebeat/module/crowdstrike/falcon/test/falcon-audit-events.log
index 0622d930cb..eb2b87955b 100644
--- a/x-pack/filebeat/module/crowdstrike/falcon/test/falcon-audit-events.log
+++ b/x-pack/filebeat/module/crowdstrike/falcon/test/falcon-audit-events.log
@@ -291,4 +291,4 @@
"Success": true,
"UTCTimestamp": 1581601820289
}
-}
\ No newline at end of file
+}
diff --git a/x-pack/filebeat/module/crowdstrike/falcon/test/falcon-audit-events.log-expected.json b/x-pack/filebeat/module/crowdstrike/falcon/test/falcon-audit-events.log-expected.json
index e08637ea63..98ca437b2b 100644
--- a/x-pack/filebeat/module/crowdstrike/falcon/test/falcon-audit-events.log-expected.json
+++ b/x-pack/filebeat/module/crowdstrike/falcon/test/falcon-audit-events.log-expected.json
@@ -638,7 +638,6 @@
"crowdstrike.event.Success": true,
"crowdstrike.event.UTCTimestamp": "2020-02-13T13:50:20.289Z",
"crowdstrike.event.UserId": "[email protected]",
- "crowdstrike.event.UserIp": "N/A",
"crowdstrike.metadata.customerIDString": "8f69fe9e-b995-4204-95ad-44f9bcf75b6b",
"crowdstrike.metadata.eventCreationTime": "2020-02-13T13:50:20.289Z",
"crowdstrike.metadata.eventType": "AuthActivityAuditEvent",
@@ -660,7 +659,7 @@
"log.flags": [
"multiline"
],
- "log.offset": 6627,
+ "log.offset": 8094,
"message": "CrowdStrike Authentication",
"related.user": [
"[email protected]"
diff --git a/x-pack/filebeat/module/crowdstrike/falcon/test/falcon-events.log b/x-pack/filebeat/module/crowdstrike/falcon/test/falcon-events.log
index 41e8054609..0980bf0fb6 100644
--- a/x-pack/filebeat/module/crowdstrike/falcon/test/falcon-events.log
+++ b/x-pack/filebeat/module/crowdstrike/falcon/test/falcon-events.log
@@ -91,4 +91,4 @@
],
"UTCTimestamp": 1593186952
}
-}
\ No newline at end of file
+} |
/test |
/test |
…32896) Co-authored-by: Andrew Kroh <[email protected]>
What does this PR do?
This PR fixes an issue causing an
illegal_argument_exception
whensource.ip
is indexed with a value ofN/A
.Why is it important?
The document won't be ingested potentially causing data loss for users and lengthening MTTD for security events.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs