Just want to confirm I am doing the right thing: if i want to logstash to another ES server at https://example.com, should i just do below in logstash config output section? I do need the port there, right?
output {
elasticsearch {
#hosts => [ "localhost:9200" ]
hosts => ["https://example.com:9200"]
user => elastic
password => changeme
index => "generic_logs"
document_type => "generic"
}
stdout { codec => rubydebug }
}