Hi all, I'm using logstash 7.10.0, I made the config file as
input {
stdin{}
}
output{
http {
url => "{URL_SET_CLOG}"
format => "json"
http_method => "post"
headers => ["Authorization", "Bearer {CLOG_TOKEN}"]
content_type => "application/json"
}
}
on running logstash I'm getting following error
[2020-10-02T04:19:17,536][ERROR][logstash.outputs.http ] [HTTP Output Failure] Could not fetch URL {:url=>"http://10.244.1.112:5000/pms/clogs/transactions", :method=>:post, :body=>"{"@version":"1","host":"vm2","message":"hello","@timestamp":"2020-05-27T10:49:32.699Z"}", :headers=>{"Authorization"=>"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTMxNjgzODIsInVzZXJuYW1lIjoic3lzYWRtaW4iLCJvcmdOYW1lIjoiUHJvdmlkZXJPcmciLCJyb2xlIjoid3JpdGVyIiwiaWF0IjoxNTkwNTc2MzgyfQ.vNaPEBhxG26oUYNKBYHKFtE0FH8mqHsKJRd45UjWFZE", "Content-Type"=>"application/json"}, :message=>"Read timed out", :class=>"Manticore::SocketTimeout", :backtrace=>["/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/manticore-0.7.0-java/lib/manticore/response.rb:37:in
block in initialize'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/manticore-0.7.0-java/lib/manticore/response.rb:79:in
call'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-http-5.2.4/lib/logstash/outputs/http.rb:239:insend_event'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-http-5.2.4/lib/logstash/outputs/http.rb:175:in
send_events'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-http-5.2.4/lib/logstash/outputs/http.rb:124:inmulti_receive'", "org/logstash/config/ir/compiler/OutputStrategyExt.java:143:in
multi_receive'", "org/logstash/config/ir/compiler/AbstractOutputDelegatorExt.java:121:inmulti_receive'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:295:in
block in start_workers'"], :will_retry=>true}
[2020-10-02T04:19:17,537][INFO ][logstash.outputs.http ] Retrying http request, will sleep for 2 seconds
can any one suggest why this error is occurring?