Docker Logstash Error: Cannot assign requested address

In the host option you can only use an IP address that is available in the container.

You should remove the host option or set it to 0.0.0.0 so Logstash will bind to the private IP of the container and your docker host will redirect the requests to it.

1 Like