From a4f4e8fd39ed2f4a6e02c6cfdee98bd39905457b Mon Sep 17 00:00:00 2001 From: Antoine Cotten Date: Sun, 18 Oct 2020 11:41:53 +0200 Subject: [PATCH] Enable Logstash's Beats input by default The configuration from the official Docker image includes it by default: https://github.com/elastic/logstash/blob/7.9/docker/data/logstash/pipeline/default.conf More information about the Beats input plugin: https://www.elastic.co/guide/en/logstash/current/plugins-inputs-beats.html --- README.md | 1 + docker-compose.yml | 1 + docker-stack.yml | 1 + logstash/pipeline/logstash.conf | 4 ++++ 4 files changed, 7 insertions(+) diff --git a/README.md b/README.md index be847a0..da80320 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,7 @@ Other available stack variants: interact with the Docker daemon.* By default, the stack exposes the following ports: +* 5044: Logstash Beats input * 5000: Logstash TCP input * 9600: Logstash monitoring API * 9200: Elasticsearch HTTP diff --git a/docker-compose.yml b/docker-compose.yml index 580409e..669e337 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,6 +41,7 @@ services: target: /usr/share/logstash/pipeline read_only: true ports: + - "5044:5044" - "5000:5000/tcp" - "5000:5000/udp" - "9600:9600" diff --git a/docker-stack.yml b/docker-stack.yml index ead1649..696425c 100644 --- a/docker-stack.yml +++ b/docker-stack.yml @@ -27,6 +27,7 @@ services: logstash: image: docker.elastic.co/logstash/logstash:7.9.2 ports: + - "5044:5044" - "5000:5000" - "9600:9600" configs: diff --git a/logstash/pipeline/logstash.conf b/logstash/pipeline/logstash.conf index 14c76f8..40ca757 100644 --- a/logstash/pipeline/logstash.conf +++ b/logstash/pipeline/logstash.conf @@ -1,4 +1,8 @@ input { + beats { + port => 5044 + } + tcp { port => 5000 }