Skip to content

Conversation

chemamartinez
Copy link
Contributor

Proposed commit message

Following error appears:

failed to parse field [crowdstrike.User] of type [keyword] in document with id '[doc_id]'. Preview of field's value: '{Name=[user]}'

when a Crowdstrike FDR event contains the following set of fields:

{ "Policy": { "RuleGroupName": "[name]", "RuleBasePath": "[path]", "Name": "[name]" }, "eid": "[eid]", "User": { "Name": "[user]" }, "Prevalence": { "Key": "[KEY]" }, "CustomerIdString": "[id]", "EventUUID": "[id]", "EventType": "Event_ExternalApiEvent", "Suppression": { "Suppressed": false }, "UTCTimestamp": 1756291914047, "Host": { "Name": "[host]" }, "ContentDiff": { "SHA256": "", "Exists": false }, "ExternalApiType": "Event_FileIntegrityMonitorRuleMatchedEnriched", "ChangeId": "[id]", "Nonce": "num", "AgentIdString": "[id]", "cid": "[id]", "timestamp": "2025-08-27T10:51:54Z" }

crowdstrike.User.Name is not processed so it conflicts when ingesting the event as crowdstrike.User is expected to be a keyword.

This PR renames the crowdstrike.User.Name field to user.name.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

@chemamartinez chemamartinez self-assigned this Sep 10, 2025
@chemamartinez chemamartinez added Integration:crowdstrike CrowdStrike bugfix Pull request that fixes a bug issue Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations] labels Sep 10, 2025
@chemamartinez chemamartinez force-pushed the crowdstrike-fdr-fix-mapping-user-field branch 2 times, most recently from ae62592 to c5d8edf Compare September 10, 2025 15:40
@chemamartinez chemamartinez force-pushed the crowdstrike-fdr-fix-mapping-user-field branch from c5d8edf to 3b0ac34 Compare September 11, 2025 08:00
@elasticmachine
Copy link

💚 Build Succeeded

History

cc @chemamartinez

Copy link

@chemamartinez chemamartinez marked this pull request as ready for review September 11, 2025 08:57
@chemamartinez chemamartinez requested a review from a team as a code owner September 11, 2025 08:57
@elasticmachine
Copy link

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

Copy link
Contributor

@chrisberkhout chrisberkhout left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good 👍

I was wondering what happens to the crowdstrike.User: {} wrapper, but that's cleaned up by the remove-nulls script at the end.

@chemamartinez chemamartinez merged commit cb79853 into elastic:main Sep 11, 2025
9 checks passed
@chemamartinez chemamartinez deleted the crowdstrike-fdr-fix-mapping-user-field branch September 11, 2025 12:15
@elastic-vault-github-plugin-prod

Package crowdstrike - 2.2.1 containing this change is available at https://epr.elastic.co/package/crowdstrike/2.2.1/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Pull request that fixes a bug issue Integration:crowdstrike CrowdStrike Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants