Logstash Not Connecting to Elasticsearch

It turns out the issue was with the way I had Docker configured rather than any issue with Logstash. It was connecting to the localhost of the Docker virtual machine rather than the localhost of my main machine thus it wasn't able to find my Elasticsearch container. For anyone who thinks they might be running into a similar problem, add the command --net=host to the line that launches your container. Thanks for the help everyone.

1 Like