# How do I make logstash not automatically bind 9200 to my ES url

**URL:** <https://discuss.elastic.co/t/how-do-i-make-logstash-not-automatically-bind-9200-to-my-es-url/137321>\
**Category:** Logstash\
**Created:** [June 25, 2018, 11:01pm UTC](https://discuss.elastic.co/t/how-do-i-make-logstash-not-automatically-bind-9200-to-my-es-url/137321 "2018-06-25T23:01:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![magdieldominguez](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@magdieldominguez](https://discuss.elastic.co/u/magdieldominguez)\
**Post date:** [June 25, 2018, 11:01pm UTC](https://discuss.elastic.co/t/how-do-i-make-logstash-not-automatically-bind-9200-to-my-es-url/137321/1 "2018-06-25T23:01:36Z")

</div>

Hi I am trying to send information into the host url of our elasticsearch db. The problem is that I do not know the port number I just know that it is on [http://monitor.production.data.com/elasticsearch](http://monitor.production.data.com/elasticsearch)

but when I put this URL in my output logstash automatically converts this to : [http://monitor.production.data.com:9200/elasticsearch](http://monitor.production.data.com:9200/elasticsearch)

this is my output:

```
output{
    elasticsearch {
    index => "test123-%{+YYYY.MM.dd}"
    hosts => "http://monitor.production.data.com/elasticsearch"
    manage_template => false
    }
}

```

how do I just make logstash send data to that exact address without adding the 9200?

thank you!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 25, 2018, 11:10pm UTC](https://discuss.elastic.co/t/how-do-i-make-logstash-not-automatically-bind-9200-to-my-es-url/137321/2 "2018-06-25T23:10:19Z")

</div>

Have you tried using port 80?

`hosts => "http://monitor.production.data.com:80/elasticsearch"`

---

<div class="post-metadata">

**Author:** ![magdieldominguez](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@magdieldominguez](https://discuss.elastic.co/u/magdieldominguez)\
**Post date:** [June 25, 2018, 11:30pm UTC](https://discuss.elastic.co/t/how-do-i-make-logstash-not-automatically-bind-9200-to-my-es-url/137321/3 "2018-06-25T23:30:21Z")

</div>

that worked like a charm thank you!

---

<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:** [July 23, 2018, 11:30pm UTC](https://discuss.elastic.co/t/how-do-i-make-logstash-not-automatically-bind-9200-to-my-es-url/137321/4 "2018-07-23T23:30:25Z")

</div>

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