diff --git a/scripts/elk/docker-compose.yml b/scripts/elk/docker-compose.yml index 1a3dc714d..19ff8f0d3 100644 --- a/scripts/elk/docker-compose.yml +++ b/scripts/elk/docker-compose.yml @@ -1,8 +1,8 @@ version: '3' services: - es01-test: + elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:7.17.14 - container_name: es01-test + container_name: elasticsearch networks: - elastic ports: @@ -19,7 +19,7 @@ services: ports: - "0.0.0.0:5601:5601" environment: - - ELASTICSEARCH_HOSTS=http://es01-test:9200 + - ELASTICSEARCH_HOSTS=http://elasticsearch:9200 logstash: image: docker.elastic.co/logstash/logstash:8.11.1 @@ -27,8 +27,8 @@ services: networks: - elastic volumes: - - ./scripts/elk/logstash.conf:/usr/share/logstash/config/logstash.conf - - ./tmp_log:/tmp_log + - ./logstash.conf:/usr/share/logstash/config/logstash.conf + - ../../tmp_log:/tmp_log command: logstash -f /usr/share/logstash/config/logstash.conf networks: diff --git a/scripts/elk/logstash.conf b/scripts/elk/logstash.conf index 41e03ee80..ae704599c 100644 --- a/scripts/elk/logstash.conf +++ b/scripts/elk/logstash.conf @@ -19,7 +19,7 @@ output { # You can send the parsed logs to other outputs like Elasticsearch # Uncomment the lines below and modify the Elasticsearch configuration elasticsearch { - hosts => ["es01-test:9200"] + hosts => ["elasticsearch:9200"] index => "harmony" } }