[event log] populate rule.* ECS fields for alert events #94137
Labels
discuss
Feature:EventLog
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
ECS defines a top-level
rule
object property, with a number of fields that correspond to Kibana alerting rules:rule.author
- the ruleupdatedBy
fieldrule.id
- the rule saved object idrule.license
- alert type license, basic, gold, etcrule.name
- the rulename
fieldrule.reference
- url to the help page for the alert typeSome are less clear how they would relate:
rule.description
rule.category
- could be producer, perhapsrule.ruleset
- could be producer, perhapsrule.uuid
- maybe this would be spaceId + id, or switch the values withrule.id
(it would have spaceId)rule.version
- could be stack version, and could perhaps also be aconstant_keyword
in our event log indices since we create new indices for every stack versionThe one missing bit of info is the spaceId, which we could perhaps force into
rule.ruleset
orrule.category
, but those aren't great fits. We'd probably want something like arule.namespace: keyword
sort of field added.As a secondary item, there is a
event.kind
field that we can populate withalert
- https://www.elastic.co/guide/en/ecs/current/ecs-event.html#field-event-kind . Related isevent.category
- almost smells like this could be theproducer
value to me.FWIW, at the time we created the event log, I don't believe the
rule
properties existed, and the valid values forevent.kind
, and it's relation toevent.category
(secondary toevent.kind
) had been specified.The text was updated successfully, but these errors were encountered: