Logstash appends port 9200 to Elasticsearch URL


(Patrick) #1

I am using AWS elasticsearch service , which return me a URL for Elasticsearch.
Example : https:// www.es-aws.com // ES Url
When I try to use the URL in logstash, it tries to connect https:// www.es-aws.com:9200 instead of https:// www.es-aws.com.

Can anyone suggest how to get rid of the port and directly listen to the URL without port number.


(Christian Dahlqvist) #2

Logstash be default appends the default Elasticsearch port, which is 9200. If you instead want to use port 443, which is the default for HTTPS, you will need to specify it explicitly.


(Patrick) #3

@Christian_Dahlqvist Can you provide me any docs related to it please


(Christian Dahlqvist) #4

https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html


(Patrick) #5

@Christian_Dahlqvist Thanks for youre help. I found the solutions actually we should use https://github.com/awslabs/logstash-output-amazon_es plugin when we are dealing with Elasticsearch AWS service.


(system) #6

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