Hi,
I am trying to run logstash on docker by using the custom configuration for logstash.
Logstash for Docker was pulled using the following commands:
docker pull docker.elastic.co/logstash/logstash:6.0.0
docker pull docker.elastic.co/logstash/logstash-oss:6.0.0
While configuring, I am using the following commands:
docker run --rm -it -v ~/pipeline/:/usr/share/logstash/pipeline/ docker.elastic.co/logstash/logstash:6.0.0
docker run --rm -it -v ~/settings/logstash.yml:/usr/share/logstash/config/logstash.yml docker.elastic.co/logstash/logstash:6.0.0
I am trying to make use of my own configuration files (i.e) logstash.yml and logstash.conf from my machine.
I changed this command in many ways to pass my config files but something is not going fine. It is taking some default configuration and throwing the following error.
[WARN ][logstash.licensechecker.licensereader] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://logstash_system:xxxxxx@elasticsearch:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://logstash_system:xxxxxx@elasticsearch:9200/][Manticore::ResolutionFailure] elasticsearch"}
I am not redirecting the output to elasticsearch in my config provided but it is taking some configuration internally.
It would be of great help if someone can say, How to provide our config files and .yml file in this docker run command to execute.
Thanks in advance