Skip to content

Message duplicty error during indexing Elasticsearch docs #3289

Answered by mihaitodor
MichalMaM asked this question in Q&A
Discussion options

You must be logged in to vote

Got you, yeah, you'll have to explicitly handle those failed messages and fallback is one option to do so. Please consult the docs for examples. Here's how the drop version would look like:

output:
  fallback:
    - elasticsearch_v8: # Please use this one instead of the legacy `elasticsearch`
        urls:
          - xxx
        basic_auth:
          enabled: true
          password: xxx
          username: xxx
        sniff: false
        action: create
        id: xxx
        index: xxx
    - drop: {}
      processors:
        - log:
            message: ${! @ fallback_error }

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@MichalMaM
Comment options

@mihaitodor
Comment options

Answer selected by MichalMaM
@MichalMaM
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants