Add event.original setting to data stream #100320
Labels
:Data Management/Data streams
Data streams and their lifecycles
Team:Data Management
Meta label for data/management team
event.original
is an ECS field that can be useful in many scenarios, especially in the security context. Currently many integrations add it as part of their ingest pipeline. In Fleet, there is also the option to opt into having the field but it needs to be part of each integration. For more details on this see elastic/integrations#4733There are several problems with the current approach:
Instead of having to repeat the same logic in many places, I propose to add a setting to data streams if the field should be added or not, something like:
This means not the integration decides if event.original is captured, but it is set on the data stream. Many integrations can be used for observability or security. If the use case is security, the setting
event.original
can be turned on for all dataset without having to modify any integrations.In the scenario of where data is routed, this would also ensure
event.original
contains the data before it was routed in case on the data stream that triggers the routing,event.original: true
is set.Expected behaviour
The behaviour of the setting would be as follow:
event.original
does not exist, first action before applying any ingest pipeline,message
is copied toevent.original
event.orignal
already exist, nothing is doneChange in integrations
It seems at the moment in integrations as we add
event.original
manually (1, 2) the integrations rename the message to event.original and then all the processing happens on event.original. I'm proposing to change this to keep all the processing on message as now integrations would always assume event.original might not be around.Questions
event.original
work in combination with TSDB / synthetics source?Links
The text was updated successfully, but these errors were encountered: