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

Remove binary field after attachment processor execution #79172

Merged
merged 1 commit into from
Oct 21, 2021

Conversation

dadoonet
Copy link
Member

Keeping the binary as a field within the document might consume a lot of resources. It is highly recommended to remove that field from the document, which can be done by adding a remove processor in th pipeline.

This commit allows an easier way of doing this by adding a new option remove_binary.

When set to true, it removes automatically the field at the end of the processor execution.

It defaults to false to keep the existing behavior and not introduce any breaking change.

Keeping the binary as a field within the document might consume a lot of resources. It is highly recommended to remove that field from the document, which can be done by adding a `remove` processor in th pipeline.

This commit allows an easier way of doing this by adding a new option `remove_binary`.

 When set to `true`, it removes automatically the field at the end of the processor execution.

It defaults to `false` to keep the existing behavior and not introduce any breaking change.
@dadoonet dadoonet added >enhancement :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP labels Oct 14, 2021
@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Oct 14, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

Copy link
Member

@masseyke masseyke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. My only question is whether we'd want to change the default to true at some point in the future? I'd be surprised if most people wanted the binary. I think we discussed this, and @dakrone wanted to keep the default behavior the same though.

@dadoonet dadoonet merged commit 879ae33 into elastic:master Oct 21, 2021
@dadoonet dadoonet deleted the pr/attachment-remove-binary branch October 21, 2021 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >enhancement Team:Data Management Meta label for data/management team v8.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants