opensearch-project / opensearch-project/data-prepper

Dynamic key_path_prefix in S3 DLQ

Open
#4,634 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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 of the S3 DLQ, I would like to dynamically determine the prefix to send failed documents to with Data Prepper expressions, similar to how the S3 sink path_prefix can be dynamic

Describe the solution you'd like

sink:
  - opensearch:
       s3:
         dlq:
           key_path_prefix: "my-${/key}-prefix/"

Alternative Solution
An alternative that would be more useful would be to create a pipeline DLQ that can send to the s3 sink, which supports dynamic path prefix

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

Start with the S3 DLQ entry point and compare it with the S3 sink's dynamic path_prefix behavior, including its Data Prepper expression handling. Done means the S3 DLQ accepts an expression-based key_path_prefix like the example and routes failed documents using the evaluated prefix.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, java
Domain
backend, cloud, data-engineering
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.