# Configuration elk stack

**URL:** <https://discuss.elastic.co/t/configuration-elk-stack/205249>\
**Category:** Logstash\
**Created:** [October 25, 2019, 11:53am UTC](https://discuss.elastic.co/t/configuration-elk-stack/205249 "2019-10-25T11:53:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leks](https://avatars.discourse-cdn.com/v4/letter/l/eb8c5e/32.png) [@Leks](https://discuss.elastic.co/u/Leks)\
**Post date:** [October 25, 2019, 11:53am UTC](https://discuss.elastic.co/t/configuration-elk-stack/205249/1 "2019-10-25T11:53:29Z")

</div>

Hi all,  
I try to solve my problem with Elasticsearch Unreachable: Connection refused, while loading data by using logstash.

> Elasticsearch.yml:  
> network.host: 0.0.0.0  
> http:port: 9200

> Kibana.yml:  
> elasticsearch.hosts: ["http: [//localhost:9200](https://localhost:9200)"]  
> server.host: localhost

> Logstash.yml:  
> xpack.monitoring.enabled: true  
> xpack.monitoring.elasticsearch.hosts: ["[http://localhost:9200](http://localhost:9200)"]

After command: netstat -at

> tcp 8 0 0.0.0.0:9200 0.0.0.0:\* LISTEN  
> tcp 0 0 0.0.0.0:http 0.0.0.0:\* LISTEN  
> tcp 0 0 0.0.0.0:9300 0.0.0.0:\* LISTEN  
> tcp 0 0 localhost:9600 0.0.0.0:\* LISTEN  
> tcp 0 0 localhost:5601 0.0.0.0:\* LISTEN  
> tcp 0 0 0.0.0.0:5443 0.0.0.0:\* LISTEN

Is my output for logstash correct?  
output {  
stdout {}  
elasticsearch {  
action =\> "index"  
hosts =\> ["localhost:9200"]  
index =\> "data\_w"  
document\_type =\> "data\_W"  
}  
}  
Thanks!

---

<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:** [November 22, 2019, 11:53am UTC](https://discuss.elastic.co/t/configuration-elk-stack/205249/2 "2019-11-22T11:53:32Z")

</div>

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