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

Changing op_type in ingest pipeline in case of _bulk operation #2856

Open
lockwooddev opened this issue Apr 11, 2022 · 2 comments · May be fixed by #15031
Open

Changing op_type in ingest pipeline in case of _bulk operation #2856

lockwooddev opened this issue Apr 11, 2022 · 2 comments · May be fixed by #15031
Assignees
Labels
enhancement Enhancement or improvement to existing feature or request Indexing & Search

Comments

@lockwooddev
Copy link

Problem
I tried using an ingest pipeline to write to a data stream, but the client writing to the pipeline is using the bulk API without create as op_type. This would require a code change to the writing client.

Proposed solution
It would be nice to have roughly the following processor in my ingest pipeline:

        {
            "set": {
                "field": "op_type",
                "value": "create"
            }
        }

Alternative
Alternatively I could not use a data stream or change the client (which I don't want to do in this case)

I hope the case I present is clear. I would love some feedback on this strange case I have.
Thanks in advance!

@lockwooddev lockwooddev added enhancement Enhancement or improvement to existing feature or request untriaged labels Apr 11, 2022
@mvillafuertem
Copy link

Hi @lockwooddev @ryanbogan , any update about this? it seems that I have this problem

org.opensearch.dataprepper.plugins.sink.opensearch.BulkRetryStrategy - operation = Index, status = 400, error = only write ops with an op_type of create are allowed in data streams

@gaobinlong
Copy link
Collaborator

Sounds like a valid use case, now we supports modifying part of the metadata fields:

, we can also support modifying the op_type parameter during the execution of ingest pipeline, will dive deep into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Indexing & Search
Projects
None yet
4 participants