# Output.elasticsearch ， hosts: \["localhost:9200"\] Which go file is calling this address?

**URL:** <https://discuss.elastic.co/t/output-elasticsearch-hosts-localhost-9200-which-go-file-is-calling-this-address/176607>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [April 12, 2019, 11:05am UTC](https://discuss.elastic.co/t/output-elasticsearch-hosts-localhost-9200-which-go-file-is-calling-this-address/176607 "2019-04-12T11:05:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brucejiang2](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@brucejiang2](https://discuss.elastic.co/u/brucejiang2)\
**Post date:** [April 12, 2019, 11:05am UTC](https://discuss.elastic.co/t/output-elasticsearch-hosts-localhost-9200-which-go-file-is-calling-this-address/176607/1 "2019-04-12T11:05:42Z")

</div>

output.elasticsearch ，  
hosts: ["localhost:9200"]  
Which go file is calling this address?

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [April 12, 2019, 4:07pm UTC](https://discuss.elastic.co/t/output-elasticsearch-hosts-localhost-9200-which-go-file-is-calling-this-address/176607/2 "2019-04-12T16:07:40Z")

</div>

Here might be a good start for hunting down `output.elasticsearch.hosts`: [https://github.com/elastic/beats/blob/master/libbeat/outputs/elasticsearch/client.go#L166](https://github.com/elastic/beats/blob/master/libbeat/outputs/elasticsearch/client.go#L166)

---

<div class="post-metadata">

**Author:** ![brucejiang2](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@brucejiang2](https://discuss.elastic.co/u/brucejiang2)\
**Post date:** [April 23, 2019, 11:32am UTC](https://discuss.elastic.co/t/output-elasticsearch-hosts-localhost-9200-which-go-file-is-calling-this-address/176607/3 "2019-04-23T11:32:20Z")

</div>

hosts: ["GZTXY-BIGDATA-PRD-REPT003:9092","GZTXY-BIGDATA-PRD-REPT004:9092","GZTXY-BIGDATA-PRD-REPT005:9092"]

log errors :

2019-04-23T19:31:20.179+0800 INFO kafka/log.go:53 Connected to broker at GZTXY-BIGDATA-PRD-REPT005:9092 (unregistered)

2019-04-23T19:31:20.180+0800 INFO kafka/log.go:53 Connected to broker at GZTXY-BIGDATA-PRD-REPT004:9092 (unregistered)

2019-04-23T19:31:20.180+0800 INFO kafka/log.go:53 Connected to broker at GZTXY-BIGDATA-PRD-REPT004:9092 (unregistered)

2019-04-23T19:31:20.180+0800 INFO kafka/log.go:53 Connected to broker at GZTXY-BIGDATA-PRD-REPT003:9092 (unregistered)

2019-04-23T19:31:20.180+0800 INFO kafka/log.go:53 Connected to broker at GZTXY-BIGDATA-PRD-REPT005:9092 (unregistered)

2019-04-23T19:31:20.181+0800 INFO kafka/log.go:53 Connected to broker at GZTXY-BIGDATA-PRD-REPT003:9092 (unregistered)

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [April 26, 2019, 8:58am UTC](https://discuss.elastic.co/t/output-elasticsearch-hosts-localhost-9200-which-go-file-is-calling-this-address/176607/4 "2019-04-26T08:58:31Z")

</div>

Can you elaborate a bit more what you are trying to do?

---

<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:** [May 24, 2019, 8:58am UTC](https://discuss.elastic.co/t/output-elasticsearch-hosts-localhost-9200-which-go-file-is-calling-this-address/176607/5 "2019-05-24T08:58:44Z")

</div>

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