Skip to content

henkjan/logspout-logstash-multiline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logspout with Logstash and multiline adapter

Logspout with logspout-logstash and multiline installed. Logspout-logstash by looplab is a minimalistic adapter for github.com/gliderlabs/logspout to write to Logstash. logspout-multiline is an adapter which implements multiline logging

pipeline status

Configuration options

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

Environment variable Description
LOGSTASH_TAGS Comma seperated list of values added as "tags"": ["value"] for Logstash. Example: -e LOGSTASH_TAGS="docker,production"
LOGSTASH_FIELDS Comma seperated list of additional fields added to the json output forwarded to Logstash. Example: -e LOGSTASH_FIELDS="environment=production,example=helloworld"
DOCKER_LABELS Setting this to a non empty value will also forward all Docker labels to Logstash.
MULTILINE_ENABLE_DEFAULT enable multiline logging for all containers (default true)
MULTILINE_MATCH determines which lines the pattern should match, one of first
MULTILINE_PATTERN pattern for multiline logging, see: MULTILINE_MATCH (default: ^\s)
MULTILINE_FLUSH_AFTER maximum time between the first and last lines of a multiline log entry in milliseconds (default: 500)
MULTILINE_SEPARATOR separator between lines for output (default: \n)

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published