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

action: update always errors out #168

Open
arvin6msd opened this issue Apr 12, 2021 · 4 comments
Open

action: update always errors out #168

arvin6msd opened this issue Apr 12, 2021 · 4 comments

Comments

@arvin6msd
Copy link

arvin6msd commented Apr 12, 2021

output {
  amazon_es {
    hosts => ["https://xyz.us-east-1.es.amazonaws.com"]
    index => "abc_%{+YYYY.ww}"
    retry_on_conflict => 5
    action => update
    region => "us-east-1"
    ssl => true
    document_id => "%{some_id}"
    doc_as_upsert => true
    manage_template => false
  }

The above configuration errors out with

logstash-v1-0 logstash [2021-04-12T16:13:27,003][ERROR][logstash.outputs.amazonelasticsearch][xyz_pipeline][fb31f5d1d0aa0c82a8d3877a37718bea053f75981e8f3fc872988391492bc95c] Encountered a retryable error. Will Retry with exponential backoff  {:code=>400, :url=>"https://xyz.us-east-1.es.amazonaws.com:443/_bulk"}
@arvin6msd
Copy link
Author

when I remove action: update the same configuration works but it tends to replace the whole document as opposed to partial update.

@arvin6msd
Copy link
Author

I cannot replicate this in logstash-output-elasticsearch. So I think it is specific to this plugin.

@rodrigorjo
Copy link

I have the same problem. Removing action => update works, but it overwrites the whole document.
Trying to use upsert script, but it wont work since it needs action => update

@SlashTec
Copy link

have u solved this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants