Within Elastic Security we've recently exposed the ability for users to specify the timestamp field used when a Detection Rule runs in effort to minimize any gaps in alerts from delayed events. The ECS field most useful here would be event.ingested (elastic/ecs#453, elastic/ecs#582), and so ensuring that this field is populated whenever possible would greatly benefit any downstream use-cases where the system must determine if an event is stale or has been delayed.
Currently it looks like only two modules are setting event.ingested (thanks @leehinman!):
x-pack/filebeat/module/microsoft/defender_atp/ingest/pipeline.yml: field: event.ingested
x-pack/filebeat/module/gsuite/ingest/common.yml: field: event.ingested
In discussions it looks like we can add the following to relevant pipelines:
- set:
field: event.ingested
value: '{{_ingest.timestamp}}'
And also update the test modules here:
# Remove event.ingested from testing, as it will never be the same.
if obj["event.dataset"] == "microsoft.defender_atp":
delete_key(obj, "event.ingested")
delete_key(obj, "@timestamp")
if obj["event.module"] == "gsuite":
delete_key(obj, "event.ingested")
Let's use this as a meta issue for tracking the support of event.ingested across modules -- feel free to update this description as things progress.
Currently supported:
Yet to be supported:
Within Elastic Security we've recently exposed the ability for users to specify the timestamp field used when a Detection Rule runs in effort to minimize any gaps in alerts from delayed events. The ECS field most useful here would be
event.ingested(elastic/ecs#453, elastic/ecs#582), and so ensuring that this field is populated whenever possible would greatly benefit any downstream use-cases where the system must determine if an event is stale or has been delayed.Currently it looks like only two modules are setting
event.ingested(thanks @leehinman!):In discussions it looks like we can add the following to relevant pipelines:
And also update the test modules here:
Let's use this as a meta issue for tracking the support of
event.ingestedacross modules -- feel free to update this description as things progress.Currently supported:
Yet to be supported: