Failed to perform request

[2023-01-26T19:51:43,271][INFO ][logstash.outputs.elasticsearch][main] Failed to perform request {:message=>"192.168.0.108:9200 failed to respond", :exception=>Manticore::ClientProtocolException, :cause=>#<Java::OrgApacheHttp::NoHttpResponseException: 192.168.0.108:9200 failed to respond>}
[2023-01-26T19:51:43,272][WARN ][logstash.outputs.elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error {:url=>"http://elastic:xxxxxx@192.168.0.108:9200/", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :message=>"Elasticsearch Unreachable: [http://192.168.0.108:9200/][Manticore::ClientProtocolException] 192.168.0.108:9200 failed to respond"}

Well, I have this above error and I don't know how to fix it.

My config:

input {
  file {
    path => "/opt/nsm/*"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
}

output {
  elasticsearch {
    hosts => ["http://192.168.0.108:9200"]
    index => "%{[@metadata][nsm]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
    user => "elastic"
    password => "****************"
  }
}

I fixed it with this:

output {
elasticsearch {
hosts => ["https://192.168.0.108:9200"]
index => "%{[@metadata][nsm]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
user => "elastic"
password => "****************"
ssl_certificate_verification => false
}
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.