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

search-bbbbbb-1.es.amazonaws.com:443 failed to respond #75

Closed
funbrain opened this issue Jan 24, 2018 · 15 comments
Closed

search-bbbbbb-1.es.amazonaws.com:443 failed to respond #75

funbrain opened this issue Jan 24, 2018 · 15 comments

Comments

@funbrain
Copy link

does anybody know this issue?
[2018-01-24T08:43:04,967][ERROR][logstash.outputs.amazones] Attempted to send a bulk request to Elasticsearch configured at '["https://search-bbbbbb-.es.amazonaws.com:443"]', but an error occurred and it failed! Are you sure you can reach elasticsearch from this machine using the configuration provided? {:client_config=>{:hosts=>["https://search-bbbbbb-.es.amazonaws.com:443"], :region=>"ap-southeast-1", :transport_options=>{:request=>{:open_timeout=>0, :timeout=>60}, :proxy=>nil, :headers=>{"Content-Type"=>"application/json"}}, :transport_class=>Elasticsearch::Transport::Transport::HTTP::AWS}, :error_message=>"search-bbbbbb-.es.amazonaws.com:443 failed to respond", :error_class=>"Faraday::ClientError", :backtrace=>nil}
[2018-01-24T08:43:05,217][WARN ][logstash.outputs.amazones] Failed to flush outgoing items {:outgoing_count=>1, :exception=>"Faraday::ClientError", :backtrace=>nil}

@sunduck
Copy link

sunduck commented Jan 25, 2018

same here

@louishe
Copy link

louishe commented Feb 7, 2018

Who can solve it? Here too.

@marioluan
Copy link

marioluan commented Feb 7, 2018

Can you reach search-bbbbbb-.es.amazonaws.com on port 443?

@whuchenrui
Copy link

whuchenrui commented Apr 2, 2018

See the same issue randomly. In most cases, logs can be successfully pushed to ElasticSearch. So the endpoint is reachable.

{:timestamp=>"2018-04-02T20:51:22.822000+0000", :message=>"Attempted to send a bulk request to Elasticsearch configured at '[\"https://fake_endpoint.es.amazonaws.com:443\"]', but an error occurred and it failed! Are you sure you can reach elasticsearch from this machine using the configuration provided?", :client_config=>{:hosts=>["https://fake_endpoint.es.amazonaws.com:443"], :region=>"us-east-1", :aws_access_key_id=>nil, :aws_secret_access_key=>nil, :aws_odin_material_set=>nil, :transport_options=> . {:request=>{:open_timeout=>0, :timeout=>60}, :proxy=>nil}, :transport_class=>Elasticsearch::Transport::Transport::HTTP::AWS, :logger=>nil, :tracer=>nil, :reload_connections=>false, :retry_on_failure=>false, :reload_on_failure=>false, :randomize_hosts=>false}, :error_message=>"fake_endpoint.es.amazonaws.com:443 failed to respond", :error_class=>"Faraday::ClientError", :backtrace=>nil, :level=>:error}

{:timestamp=>"2018-04-02T20:51:22.824000+0000", :message=>"Failed to flush outgoing items", :outgoing_count=>1, :exception=>"Faraday::ClientError", :backtrace=>nil, :level=>:warn}

@brandonxsellco
Copy link

Any solution to this, having the same problem?

@Shypes
Copy link

Shypes commented Sep 19, 2018

Same Issue, Please any solution

Logstash config

`
input {
elasticsearch {
hosts => ["localhost:7467"]
index => "subscription-test"
size => 500
scroll => "5m"
docinfo => true
}
}

output {
amazon_es {
hosts=> ["fake.es.amazonaws.com"]
region => "eu-west-1"
index => "subscription-data"
aws_access_key_id => 'xxxxx'
aws_secret_access_key => 'xxxxxxxx'
document_type => "%{[@metadata][_type]}"
document_id => "%{[@metadata][_id]}"
}
stdout {
codec => "dots"
}
}
`

Attempted to send a bulk request to Elasticsearch configured at '["https://fake.eu-west-1.es.amazonaws.com:443"]', but an error occurred and it failed! Are you sure you can reach elasticsearch from this machine using the configuration provided? {:client_config=>{:hosts=>["https://fake.es.amazonaws.com:443"], :region=>"eu-west-1", :transport_options=>{:request=>{:open_timeout=>0, :timeout=>60}, :proxy=>nil}, :transport_class=>Elasticsearch::Transport::Transport::HTTP::AWS}, :error_message=>"fake.eu-west-1.es.amazonaws.com:443 failed to respond", :error_class=>"Faraday::ClientError", :backtrace=>nil, :level=>:error}

@xyq164202
Copy link
Contributor

We have a new version release, can you guys try that?

@Shypes
Copy link

Shypes commented Sep 21, 2018

Hello xyq164202 ,
I just tried the new version, am getting a different error,

Pipeline aborted due to error {:exception=>"URI::InvalidComponentError", :error=>"bad component(expected port component): 443", :backtrace=>["/opt/logstash/vendor/jruby/lib/ruby/1.9/uri/generic.rb:697:in `check_port'", "/opt/logstash/vendor/jruby/lib/ruby/1.9/uri/generic.rb:744:in `port='", "/opt/logstash/vendor/jruby/lib/ruby/1.9/uri/generic.rb:195:in `initialize'", "/opt/logstash/vendor/jruby/lib/ruby/1.9/uri/http.rb:84:in `initialize'",

@xyq164202
Copy link
Contributor

xyq164202 commented Sep 24, 2018

Hi, May I ask what's your ES version?

@xyq164202
Copy link
Contributor

Hello Shypes:
Would you please upgrade your logstash to the newest version(6.4.0) and try again?
Thanks!

@Shypes
Copy link

Shypes commented Sep 25, 2018

Hi xyq164202, sure i would upgrade and give it a try

My current Elastic Search running on ec2 instance is version 2.4.6.

Managed version of Elastic Search to migrate to is 2.3. but thinking i should make the managed elasticsearch 6.0* right now.

I have currently shut down the managed Elastic Search, i would need to set it up and test.

@xyq164202
Copy link
Contributor

Hi Shypes :
Remember use the newest Logstash version too.

@jsanjay63
Copy link

facing the same issue/error when executing this with logstash docker

@xyq164202
Copy link
Contributor

facing the same issue/error when executing this with logstash docker

Hi jsanjay63:
This issue can be fixed with updated Logstash version to 6.4.0. Thanks

@AustinTag
Copy link
Contributor

Closing due to inactivity, please re-open if the issue persists with the latest versions

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

10 participants