From 276e2f6691b625e13a2a8f04babed427ca51d120 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 15 May 2021 05:37:53 +0300 Subject: [PATCH] Run setup for some beat shippers. --- docker-compose.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 291d59d..b222c8c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,6 +21,28 @@ services: volumes: - elasticsearch:/usr/share/elasticsearch/data + filebeat_setup: + command: > + filebeat setup + -E output.elasticsearch.hosts=['elasticsearch:9200'] + -E setup.kibana.host=kibana:5601 + -E setup.ilm.overwrite=true + image: docker.elastic.co/beats/filebeat-oss:7.12.1 + links: &beat_links + - elasticsearch + - kibana + restart: on-failure + + heartbeat_setup: + command: > + heartbeat setup + -E output.elasticsearch.hosts=['elasticsearch:9200'] + -E setup.kibana.host=kibana:5601 + -E setup.ilm.overwrite=true + image: docker.elastic.co/beats/heartbeat-oss:7.12.1 + links: *beat_links + restart: on-failure + kibana: environment: ELASTICSEARCH_HOSTS: | @@ -33,6 +55,26 @@ services: - elasticsearch restart: always + metricbeat_setup: + command: > + metricbeat setup + -E output.elasticsearch.hosts=['elasticsearch:9200'] + -E setup.kibana.host=kibana:5601 + -E setup.ilm.overwrite=true + image: docker.elastic.co/beats/metricbeat-oss:7.12.1 + links: *beat_links + restart: on-failure + + packetbeat_setup: + command: > + packetbeat setup + -E output.elasticsearch.hosts=['elasticsearch:9200'] + -E setup.kibana.host=kibana:5601 + -E setup.ilm.overwrite=true + image: docker.elastic.co/beats/packetbeat-oss:7.12.1 + links: *beat_links + restart: on-failure + volumes: elasticsearch: -- GitLab