Skip to content

Remove binary field after attachment processor execution#79172

Merged
dadoonet merged 1 commit into
elastic:masterfrom
dadoonet:pr/attachment-remove-binary
Oct 21, 2021
Merged

Remove binary field after attachment processor execution#79172
dadoonet merged 1 commit into
elastic:masterfrom
dadoonet:pr/attachment-remove-binary

Conversation

@dadoonet
Copy link
Copy Markdown
Contributor

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 :Distributed/Ingest Node Execution or management of Ingest Pipelines labels Oct 14, 2021
@elasticmachine elasticmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. label Oct 14, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
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

:Distributed/Ingest Node Execution or management of Ingest Pipelines >enhancement Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v8.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants