Hi all,
I am running elasticsearch and kibana in a container and i am trying to link filebeat to kibana but I am having an error. I am still a noob in this.However, I succesfully had results when i installed them locally but this seems difficult for me to run it in a container. below are my commands and error message that i get when running the last command. Maybe i am doing something wrong here.
docker network create -d bridge mynetwork
------------------------------------------------------------------------------------------------------------------------
docker run --network=mynetwork --name elasticsearch -p 9200:9200 -p 9300:9300 -e
"discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.0.1
------------------------------------------------------------------------------------------------------------------------
docker run --network=mynetwork --name kibana -p 5601:5601 --link elasticsearch:elasticsearch
-e "ELASTICSEARCH_URL=http://elasticsearch:9200" docker.elastic.co/kibana/kibana:7.0.1
-------------------------------------------------------------------------------------------------------------------------
docker run --network=mynetwork --link elasticsearch:elasticsearch --name filebeat
docker.elastic.co/beats/filebeat:7.0.1 setup -E filebeat.input.paths=/var/jenkins_home -E
setup.kibana.host=localhost:5601
And here is the error message when i run the last command
Index setup complete.
Loading dashboards (Kibana must be running and reachable)
Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to
http://localhost:5601/api/status fails: fail to execute the HTTP GET request: Get
http://localhost:5601/api/status: dial tcp [::1]:5601: connect: cannot assign requested address.
Response: .
Your help is highly appreciated.
Thanks