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


(magdiel ) #1

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

but when I put this URL in my output logstash automatically converts this to : 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!


(Mark Walkom) #2

Have you tried using port 80?

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


(magdiel ) #3

that worked like a charm thank you!


(system) #4

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