# Logstash elasticsearch host name

**URL:** <https://discuss.elastic.co/t/logstash-elasticsearch-host-name/117134>\
**Category:** Logstash\
**Created:** [January 25, 2018, 10:35pm UTC](https://discuss.elastic.co/t/logstash-elasticsearch-host-name/117134 "2018-01-25T22:35:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob\_Donat](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@Bob\_Donat](https://discuss.elastic.co/u/Bob_Donat)\
**Post date:** [January 25, 2018, 10:35pm UTC](https://discuss.elastic.co/t/logstash-elasticsearch-host-name/117134/1 "2018-01-25T22:35:04Z")

</div>

I have a elasticsearch, logstash, and kibana deployment on kubernetes.

When the logstash,conf file is created I get the following:

elasticsearch {  
hosts =\> ["elasticsearch.default.svc.cluster.local:9200"]  
}

Where is that host name coming from?

How can I change the host to use a namespace other than "default". I assume "default" is the namespace. My elasticsearch service is running in a different namespace.

---

<div class="post-metadata">

**Author:** ![Bob\_Donat](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@Bob\_Donat](https://discuss.elastic.co/u/Bob_Donat)\
**Post date:** [January 26, 2018, 1:43am UTC](https://discuss.elastic.co/t/logstash-elasticsearch-host-name/117134/2 "2018-01-26T01:43:51Z")

</div>

Problem resolved.

---

<div class="post-metadata">

**Author:** ![anup](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@anup](https://discuss.elastic.co/u/anup)\
**Post date:** [January 29, 2018, 8:16pm UTC](https://discuss.elastic.co/t/logstash-elasticsearch-host-name/117134/3 "2018-01-29T20:16:05Z")

</div>

How did you resolve the problem?

---

<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 26, 2018, 8:16pm UTC](https://discuss.elastic.co/t/logstash-elasticsearch-host-name/117134/4 "2018-02-26T20:16:18Z")

</div>

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