Follow the instructions in Custom folder on how to build your own Logspout container with custom modules. Basically just copy the contents of the custom folder and include:
package main
import (
_ "github.com/zhmaeff/logspout-multiline"
_ "github.com/looplab/logspout-logstash"
_ "github.com/gliderlabs/logspout/transports/tcp"
_ "github.com/gliderlabs/logspout/transports/udp"
)
in modules.go
.
MULTILINE_ENABLE_DEFAULT
- enable multiline logging for all containers (defaulttrue
)MULTILINE_MATCH
- determines which lines the pattern should match, one of first|last|nonfirst|nonlast (defaultnonfirst
)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)