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

logstash failing with bulk load to aws_es issue #135

Open
userakhila opened this issue Oct 10, 2019 · 3 comments
Open

logstash failing with bulk load to aws_es issue #135

userakhila opened this issue Oct 10, 2019 · 3 comments
Labels

Comments

@userakhila
Copy link

userakhila commented Oct 10, 2019

Logstash is failing to upload bulk document to amazon elasticsearch and keeps trying to upload that document infinitely without executing other logs. Is there a way to reject bulk message and process the other ones?

Error:

[ERROR][logstash.outputs.elasticsearch][main] Encountered a retryable error. Will Retry with exponential backoff  {:code=>413, :url=>"https://aws_es_domain:443/_bulk", :body=>"{\"Message\":\"Request size exceeded 10485760 bytes\"}"}

@AustinTag
Copy link
Contributor

This seems related to #114 and #112

@AustinTag AustinTag added the bug label Oct 10, 2019
@hendricjabs
Copy link

hendricjabs commented Feb 28, 2020

I had the same error and I could fix this by removing the protocol in front of the hosts URL.
So instead of

output {
    amazon_es {
        hosts => ["https://foo.eu-central-1.es.amazonaws.com"]
        region => "eu-central-1"
        index => "production-logs-%{+YYYY.MM.dd}"
    }
}

I changed it to the following

output {
    amazon_es {
        hosts => ["foo.eu-central-1.es.amazonaws.com"]
        region => "eu-central-1"
        index => "production-logs-%{+YYYY.MM.dd}"
    }
}

Maybe it would be an idea to check the configuration and throw an error before processing it or to automatically remove the protocol.

@AdrienBigot
Copy link

Same problem even using max_bulk_bytes with a value of 100.000 .
Very big problem since it break totaly the ingestion of our logs.
Thanks in advance for a fix 👍

Adrien

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

No branches or pull requests

4 participants