Enable https from logstash to elasticsearch

I have enabled https in elasticsearch by following this guide

Now, my elasticsearch is on https. The same does not work on logstash.

I have a conf file which would receive traffic at http port 9600 in logstash and logstash would forward it to Elasticsearch.

input {
http {
port => 9600
response_headers => {
"Access-Control-Allow-Origin" => "*"
"Content-Type" => "text/json"
"Access-Control-Allow-Headers" => "Origin, X-Requested-With, Content-Type, Accept"
output {
elasticsearch {
hosts => ["https://website.com:9200"]
index => "MyService-%{+YYYY.MM.dd}"

I want to make the port 9600 set to https.

How can I achieve this?

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