Hello Team,
I am using ansible playbook to run all three Elasticsearch, Kibana and logstash containers in one go.
After running the ansible playbook I can see all three containers are up and running.
Following is the ansible playbook.
- hosts: localhost
tasks:
- name: Create network
docker_network:
name: elk_network
- name: Run elastic container
docker_container:
name: 'elastic'
recreate: true
restart_policy: unless-stopped
image: 'elasticsearch:7.13.2'
env:
discovery.type=single-node
xpack.security.enabled=false
published_ports:
- "0.0.0.0:9200:9200"
networks:
- name: "elk_network"
- name: Run kibana container
docker_container:
name: 'kibana'
recreate: true
restart_policy: unless-stopped
image: 'kibana:7.13.2'
published_ports:
- "0.0.0.0:5601:5601"
networks:
- name: "elk_network"
- name: Run logstash container
docker_container:
name: 'logstash'
recreate: true
restart_policy: unless-stopped
image: 'logstash:7.13.2'
published_ports:
- "0.0.0.0:5044:5044"
volumes:
- "./conf.d/:/usr/share/logstash/pipeline/conf.d/:ro"
networks:
- name: "elk_network"
When I am trying setup a kibana from another server, I am getting following error message.
Kindly suggest on this.
Regard,
Sabil.
Overwriting ILM policy is disabled. Set setup.ilm.overwrite: true
for enabling.
Index setup finished.
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: parsing kibana response: invalid character 'K' looking for beginning of value. Response: Kibana server is not ready yet.