90DaysOfDevOps/2022/Days/Monitoring/Elastic Stack/extensions/logspout
2022-10-11 19:54:41 +05:30
..
.dockerignore Moved old data to 2022 folder and added new readme.md for 2023 data 2022-10-11 19:54:41 +05:30
build.sh Moved old data to 2022 folder and added new readme.md for 2023 data 2022-10-11 19:54:41 +05:30
Dockerfile Moved old data to 2022 folder and added new readme.md for 2023 data 2022-10-11 19:54:41 +05:30
logspout-compose.yml Moved old data to 2022 folder and added new readme.md for 2023 data 2022-10-11 19:54:41 +05:30
modules.go Moved old data to 2022 folder and added new readme.md for 2023 data 2022-10-11 19:54:41 +05:30
README.md Moved old data to 2022 folder and added new readme.md for 2023 data 2022-10-11 19:54:41 +05:30

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