# Failed to perform request

**URL:** <https://discuss.elastic.co/t/failed-to-perform-request/324071>\
**Category:** Logstash\
**Created:** [January 26, 2023, 7:55pm UTC](https://discuss.elastic.co/t/failed-to-perform-request/324071 "2023-01-26T19:55:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![test\_qweqwe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/test_qweqwe/32/94750_2.png) [@test\_qweqwe](https://discuss.elastic.co/u/test_qweqwe)\
**Post date:** [January 26, 2023, 7:55pm UTC](https://discuss.elastic.co/t/failed-to-perform-request/324071/1 "2023-01-26T19:55:38Z")

</div>

```auto
[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:

```auto
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 => " ****************"
  }
}

```

---

<div class="post-metadata">

**Author:** ![test\_qweqwe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/test_qweqwe/32/94750_2.png) [@test\_qweqwe](https://discuss.elastic.co/u/test_qweqwe)\
**Post date:** [January 26, 2023, 10:15pm UTC](https://discuss.elastic.co/t/failed-to-perform-request/324071/2 "2023-01-26T22:15:18Z")

</div>

I fixed it with this:

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 23, 2023, 10:15pm UTC](https://discuss.elastic.co/t/failed-to-perform-request/324071/3 "2023-02-23T22:15:22Z")

</div>

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