From 0ff30147b161ddf84164046d70444751ade2ad48 Mon Sep 17 00:00:00 2001 From: kanguk Date: Tue, 23 Jan 2024 14:54:16 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20nginx=EC=99=80=20elk=20=EC=97=B0?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logging/filebeat/filebeat.yml | 10 +++++++--- logging/logstash/pipeline/logstash.conf | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/logging/filebeat/filebeat.yml b/logging/filebeat/filebeat.yml index 050115b..3056510 100644 --- a/logging/filebeat/filebeat.yml +++ b/logging/filebeat/filebeat.yml @@ -9,7 +9,11 @@ filebeat.inputs: - type: log paths: - - /logging/django.log + - /var/log/nginx/*.log -output.elasticsearch: - hosts: ["elasticsearch:9200"] +output.logstash: + enabled: true + hosts: ["logstash:5044"] + +setup.kibana: + host: "http://kibana:5601" diff --git a/logging/logstash/pipeline/logstash.conf b/logging/logstash/pipeline/logstash.conf index b1d0c4c..8875de2 100644 --- a/logging/logstash/pipeline/logstash.conf +++ b/logging/logstash/pipeline/logstash.conf @@ -1,6 +1,6 @@ input { beats { - port => 5000 + port => 5044 } }