Add Logstash config to filter example Nginx logs

Signed-off-by: Jing Li <thyrlian@gmail.com>
This commit is contained in:
Jing Li
2020-07-24 02:32:09 +02:00
parent 20e68aa966
commit c02d92a01c
4 changed files with 8168 additions and 0 deletions

View File

@@ -23,6 +23,9 @@ services:
environment:
discovery.seed_hosts: logstash
LS_JAVA_OPTS: "-Xms512m -Xmx512m"
volumes:
- ./logstash/pipeline/logstash-nginx.config:/usr/share/logstash/pipeline/logstash-nginx.config
- ./logstash/nginx.log:/home/nginx.log
ports:
- "5000:5000/tcp"
- "5000:5000/udp"
@@ -32,6 +35,7 @@ services:
- elasticsearch
networks:
- elastic
command: logstash -f /usr/share/logstash/pipeline/logstash-nginx.config
kibana:
image: kibana:7.8.0
container_name: kib