Conversation
There was a problem hiding this comment.
wasn't sure about this specific change, please confirm
There was a problem hiding this comment.
wasn't sure about this specific change, please confirm
rylnd
left a comment
There was a problem hiding this comment.
Adding a snapshot test for getSignalsTemplate before making these changes, and then updating it after them will show us exactly what's changed with our mappings, and we'll also have an artifact to compare moving forward 👍
There was a problem hiding this comment.
ottherMapping should only include threat.indicator fields, so I think we can simplify this merging of threat fields to:
threat: {
...ecsMapping.mappings.properties.threat,
indicator: {
...otherMapping.threat.properties.indicator.properties,
event: ecsMapping.mappings.properties.event,
}
}There was a problem hiding this comment.
hey I believe indicator must exist under threat.properties, so I think the prev version was better, let me know
There was a problem hiding this comment.
Right, I neglected to add an intermediate properties key between threat and indicator, but I think the point still stands, no?
There was a problem hiding this comment.
This could be simplified to
| as: otherMapping.as, | |
| code_signature: otherMapping.code_signature, | |
| geo: otherMapping.geo, | |
| hash: otherMapping.hash, | |
| interface: otherMapping.interface, | |
| os: otherMapping.os, | |
| pe: otherMapping.pe, | |
| ...otherMapping.mappings.properties |
unless I'm misunderstanding?
There was a problem hiding this comment.
sure, was trying to be explicit but I guess it's not exactly necessary. renamed otherMapping to otherMappedProperties for additional clarification
64ee743 to
532f64d
Compare
|
@elasticmachine merge upstream |
💔 Build Failed
Failed CI Steps
Test FailuresKibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/dashboard/sync_colors·ts.dashboard sync colors should sync colors on dashboard by defaultStandard OutStack TraceKibana Pipeline / general / X-Pack Detection Engine API Integration Tests.x-pack/test/detection_engine_api_integration/security_and_spaces/tests/add_actions·ts.detection engine api security and spaces enabled add_actions adding actions should be able to create a new webhook action and attach it to a ruleStandard OutStack TraceKibana Pipeline / general / X-Pack Detection Engine API Integration Tests.x-pack/test/detection_engine_api_integration/security_and_spaces/tests/add_actions·ts.detection engine api security and spaces enabled add_actions adding actions should be able to create a new webhook action and attach it to a ruleStandard OutStack Traceand 38 more failures, only showing the first 3. Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @ecezalp |
|
Closing in favor of #97573 |
Summary
This change brings 1.9 ECS mappings to the detection engine.