Is it mandatory to specify elasticsearch port in logstash output plugin?

Hi,

I have setup logstash for fetching files from 2 separate input sources and these are output to two elasticsearch indexes. For one output, I have set;

hosts => ["192.168.1.1:9200"]

and for other, I have set just

hosts => ["192.168.1.1"]

Both of them are working fine. I run a cluster with 3 master eligible nodes (different ports in single ip / machine). Is it mandatory to specify port?

Moved to #logstash

Is it mandatory to specify port?

The port defaults to 9200 so you only need to list the port if it's different than that.