Hi All,
I am working on a project to spin up ELK stack inside docker container. I have containers for elasticsearch/kibana up and running but whenever I am trying to run logstash it gives me the below error,
I replaced IP address with a "*",
[2025-05-30T05:08:16,184][INFO ][logstash.outputs.elasticsearch][main] Failed to perform request {:message=>"*:9200 failed to respond", :exception=>Manticore::ClientProtocolException, :cause=>#<Java::OrgApacheHttp::NoHttpResponseException: *:9200 failed to respond>}
[2025-05-30T05:08:16,184][WARN ][logstash.outputs.elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error {:url=>"http://*:9200/", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :message=>"Elasticsearch Unreachable: [http:/*:9200/][Manticore::ClientProtocolException] *:9200 failed to respond"}
Now, to address this problem I tried to modify xpack.security.enabled to false, but on doing that it makes kibana inaccessible. 9200 port is open as per the output of netstat command as per below.
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:5601 0.0.0.0:* LISTEN 7208/docker-proxy
tcp 0 0 0.0.0.0:9200 0.0.0.0:* LISTEN 8610/docker-proxy
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1093/sshd: /usr/sbi
tcp6 0 0 :::5601 :::* LISTEN 7215/docker-proxy
tcp6 0 0 :::9200 :::* LISTEN 8617/docker-proxy
tcp6 0 0 :::22 :::* LISTEN 1093/sshd: /usr/sbi
udp 0 0 127.0.0.1:323 0.0.0.0:* 675/chronyd
udp6 0 0 ::1:323 :::*
Can anyone please suggest what's wrong here ?
Thanks.