-
Notifications
You must be signed in to change notification settings - Fork 587
ti_recordedfuture: triggered_alert field is incorrectly mapped as keyword #18136
Copy link
Copy link
Closed
Closed
Copy link
Labels
Integration:ti_recordedfutureRecorded FutureRecorded FutureTeam:SDE-CrestCrest developers on the Security Integrations team [elastic/sit-crest-contractors]Crest developers on the Security Integrations team [elastic/sit-crest-contractors]Team:Security-Service IntegrationsSecurity Service Integrations team [elastic/security-service-integrations]Security Service Integrations team [elastic/security-service-integrations]bugfixPull request that fixes a bug issuePull request that fixes a bug issue
Metadata
Metadata
Assignees
Labels
Integration:ti_recordedfutureRecorded FutureRecorded FutureTeam:SDE-CrestCrest developers on the Security Integrations team [elastic/sit-crest-contractors]Crest developers on the Security Integrations team [elastic/sit-crest-contractors]Team:Security-Service IntegrationsSecurity Service Integrations team [elastic/security-service-integrations]Security Service Integrations team [elastic/security-service-integrations]bugfixPull request that fixes a bug issuePull request that fixes a bug issue
Type
Fields
Give feedbackNo fields configured for issues without a type.
The
primary_entityfield in theti_recordedfuture.triggered_alertdata stream is mapped askeywordinfields.yml, but the Recorded Future v3 alerts API returns it as an object withname,id, andtypefields. When this happens, Elasticsearch rejects the document with adocument_parsing_exception:The
primary_entityfield has the same shape as individual items in theentitiesarray, which is already correctly mapped as a group withid,name, andtypesubfields. All existing test fixtures use"primary_entity": null, so the object case was never exercised.Fix
Change
primary_entityinfields/fields.ymlfromtype: keywordto a group withid,name,typesubfields (all keyword), matching theentitiesfield structure. Add test data with a non-nullprimary_entityobject, for example,{"name": "Ransomware", "id": "J0Nl-p", "type": "MalwareCategory"}.Versions