Sign inSign up

thojkooi/logspout

By thojkooi

Updated over 7 years ago

Docker image with logspout-logstash installed

Image
0

500K+

thojkooi/logspout repository overview

Logspout with Logstash adapter

Logspout with logspout-logstash installed. Logspout-logstash by looplab is a minimalistic adapter for github.com/gliderlabs/logspout to write to Logstash.

pipeline status

Configuration options

The following environment variables for containers can be picked up on.

Environment variableDescription
LOGSTASH_TAGSComma seperated list of values added as "tags"": ["value"] for Logstash. Example: -e LOGSTASH_TAGS="docker,production"
LOGSTASH_FIELDSComma seperated list of additional fields added to the json output forwarded to Logstash. Example: -e LOGSTASH_FIELDS="environment=production,example=helloworld"
DOCKER_LABELSSetting this to a non empty value will also forward all Docker labels to Logstash.

See the readme on looplap/logspout-logstash for more information.

Example compose file
version: '2'
services:
  logspout:
     image: thojkooi/logspout:v3.2.4
     restart: always
     volumes:
       - /var/run/docker.sock:/var/run/docker.sock
     environment:
       - ROUTE_URIS=logstash+tcp://logstash.localhost:5001

Tag summary

Content type

Image

Digest

Size

10.4 MB

Last updated

over 7 years ago

docker pull thojkooi/logspout