stephenb
(Stephen Brown)
May 30, 2025, 4:54pm
6
Can you curl the Elasticsearch endpoint from inside the logstash container? or from your host?
From inside container try this (using what you are using will probably fail)
curl -v http://<elasticsearch>:9200
Or try this... (probably will work)
curl -v http://host.docker.internal:9200
From outside container
curl -v http://localhost:9200
Do you know how docker networks ... how to get one container to connect to another
Hi @mwsprotte Welcome to the community!
Docker Networking Issue not Elastic...
Another explanation
Might be worth reading... if you are new to docker
try using
host.docker.internal
docker run \
--net=elastic docker.elastic.co/beats/filebeat:7.17.4 \
setup -E setup.kibana.host=host.docker.internal:5601 \
-E output.elasticsearch.hosts=["https://host.docker.internal:9200"]