Skip to content

Support multiple delete_when condition in delete_entries processor #5315

@kkondaka

Description

@kkondaka

Is your feature request related to a problem? Please describe.
Allow multiple keys to be deleted under different conditions when using delete_entries processor

Describe the solution you'd like
Modify delete_entries processor to support this new configuration that allows multiple with_keys and delete_when configurations like shown below. The existing configuration is still supported. This is new config under entries needs to be added.

processor:
   - delete_entries:
        entries : 
           - with_keys: ["key1", "key2"]
              delete_when : "condition1"
           - with_keys : ["key3", "key4"]
              delete_when : "condition2"
           - with_keys : ["key5", "key6", "key7"]
              delete_when : "condition3"

Describe alternatives you've considered (Optional)
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions