opensearch-project / opensearch-project/data-prepper

Allowlist support for deleting entries

Open
#2,920 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
Java
Stars
374
Forks
354
Avg merge
3d 18h
Merged PRs (30d)
8

Description

Is your feature request related to a problem? Please describe.
As a user, I would like to filter the keys in my Event with an explicit allowlist, and delete all other keys.

Describe the solution you'd like
An additional parameter in the delete_entries processor

delete_entries:
     delete_all_except: [ “key-one”, "key-two”, "key-three” ]

This would result in the Event only containing the three keys above, and all others will be deleted. We could consider having each element be a regex pattern instead of just a string, but this would impact performance, since we would have to match each key against every pattern until there was a match. For keys that don't match any patterns, they would be matched against every pattern in the list. Given that, I am proposing not support regex yet

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The request targets the delete_entries processor, but it does not name implementation files or tests. Locate that processor and its configuration and test coverage first; done means an explicit delete_all_except list preserves only the listed keys and verifies the behavior without regex matching.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
data-engineering
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.