Abdelmoughit Gardam
Abdelmoughit Gardam

Reputation: 123

Running filebeat on docker

i'm trying to install elk and filebeat on docker, well i uploaded the image of elk and it worked i can go to the kibana dashboard and view elastic ,... Now I want to install filebeat image so i followed the documentation bellow , the image is pulled but when I want to run filebeat setup command i got an error.

Documentation: https://www.elastic.co/guide/en/beats/filebeat/current/running-on-docker.html#running-on-docker

This is the command i used:

docker run docker.elastic.co/beats/filebeat:8.1.2 setup -E setup.kibana.host=kibana:5601 -E output.elasticsearch.hosts=["elasticsearch:5601"]

This is the error I get:

Exiting: couldn't connect to any of the configured Elasticsearch hosts. Errors: [error connecting to Elasticsearch at http://elasticsearch:9200: Get "http://elasticsearch:9200": lookup elasticsearch on 192.168.65.5:53: read udp 172.17.0.2:41384->192.168.65.5:53: i/o timeout]

Upvotes: 0

Views: 1310

Answers (1)

pindropviolence
pindropviolence

Reputation: 61

How are you accessing kibana service ? is your elasticsearch running on http://elasticsearch:9200 ? if you are running it in localhost then try to see if its running at http://localhost:9200. Change the docker command to appropriate host values.

Upvotes: 1

Related Questions