Logstash config file on docker

I am new to both elk and docker
Wanted to know how could I run the config file of logstash and link it to elasticsearch for further analysis.
I have all the images pulled on the server and elasticsearch and kibana are running fine.

I used this command
docker run -h logstash --name logstash --link elasticsearch:elasticsearch -it --rm -v "$PWD":/config-dir logstash -f /config-dir/filename.conf

For this it is creating an endpoint API well and fine but there is an error with respect to connection refused from elasticsearch.

Regards
gaurav

For this it is creating an endpoint API well and fine but there is an error with respect to connection refused from elasticsearch.

Please never ever paraphrase error messages. Use copy/paste so we can see the exact message. Details matter!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.