docker-elk/extensions/logspout
Antoine Cotten 924a1e5987
chore: Update Compose file version to 3.7
Allows enabling the 'init' option in the 'setup' service.

Requires Docker 18.06.0 and Compose 1.22.0.
2022-02-28 09:50:52 +01:00
..
.dockerignore Automate management of required roles and user passwords (#671) 2022-02-21 11:19:43 +01:00
Dockerfile Add Logspout extension (#133) 2017-06-20 17:40:38 +02:00
README.md Enable linter for Markdown files 2020-10-18 20:32:23 +02:00
build.sh logspout: Sync build script with upstream 2020-12-23 14:16:10 +01:00
logspout-compose.yml chore: Update Compose file version to 3.7 2022-02-28 09:50:52 +01:00
modules.go ci: Add test for Logspout extension 2021-01-07 19:53:50 +01:00

README.md

Logspout extension

Logspout collects all Docker logs using the Docker logs API, and forwards them to Logstash without any additional configuration.

Usage

If you want to include the Logspout extension, run Docker Compose from the root of the repository with an additional command line argument referencing the logspout-compose.yml file:

$ docker-compose -f docker-compose.yml -f extensions/logspout/logspout-compose.yml up

In your Logstash pipeline configuration, enable the udp input and set the input codec to json:

input {
  udp {
    port  => 5000
    codec => json
  }
}

Documentation

https://github.com/looplab/logspout-logstash