Elk for logs.

feature/elk
frozen 1 year ago
parent 2873a786fb
commit 897364a82a
No known key found for this signature in database
GPG Key ID: 5391C63E79B03EDE
  1. 10
      scripts/elk/docker-compose.yml
  2. 2
      scripts/elk/logstash.conf

@ -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:

@ -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"
}
}

Loading…
Cancel
Save