Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fleet][Discuss] Add removal of event.original to the Fleet final pipeline #165668

Open
jsoriano opened this issue Sep 5, 2023 · 2 comments
Open
Labels
discuss Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@jsoriano
Copy link
Member

jsoriano commented Sep 5, 2023

Describe the feature:

Add the removal of event.original to the Fleet final pipeline, so this removal doesn't need to be included in ingest pipelines in packages.

It would be to add a processor like this one to the final pipeline:

  {
    "remove": {
      "field": "event.original",
      "if": "ctx?.tags == null || !(ctx.tags.contains('preserve_original_event'))",
      "ignore_failure": true,
      "ignore_missing": true
    }
  }

Fleet could also have an advanced setting that can be used to inject the tag in specific data streams. If enabled, it would inject a pipeline processor to add the tag if not already present. So this logic would neither need to be included in packages.

Describe a specific use case for the feature:

Users have access to event.original in custom pipelines.

Current approach is to remove this field from the pipeline included in the package, that is executed before the custom pipelines, so users don't have access to this field in custom processing.

Eventually packages could remove the removal from their pipelines.

Current workaround:

Users can enable "Preserve original event", then they have access to original.event in custom processing and can also decide to delete the field there.

Related issues:

@jsoriano jsoriano added discuss Team:Fleet Team label for Observability Data Collection Fleet team labels Sep 5, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@termcap
Copy link

termcap commented Sep 5, 2023

Another solution could be making the "Remove" processor the last processor in the default pipeline. Currently the last processor is the custom pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

No branches or pull requests

3 participants