-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Description
The alerting framework considers the data_stream.* fields to be reserved fields in the alerts as data indices, particularly since AAD in serverless are actually datastreams so we may want to set specific values for these fields in the future.
Currently, data_stream.* fields from the source index are copied over as-is into data_stream.* fields in the alert document. This was causing issues with the default ECS mapping for these fields (which is constant_keyword) so these fields are actually unmapped in the alert document.
To handle these fields more gracefully, we suggest either
(1) Copying data_stream.* fields into a different field within the alerts index that security solutions can define a mapping for (similar to how event.* fields are copied into kibana.alert.original_event.*).
(2) Stripping these fields altogether when building the alert document. It seems that event.dataset === data_stream.dataset so that information is already captured in the source document in a different field anyway.
Open to other solutions but the end result should be that the alert document built by the detection engine does not contain the data_stream.* fields in their original path.