https://github.com/zhmaeff/logspout-multiline
Logspout configurable multiline adapter
https://github.com/zhmaeff/logspout-multiline
adapter logspout multiline
Last synced: 5 months ago
JSON representation
Logspout configurable multiline adapter
- Host: GitHub
- URL: https://github.com/zhmaeff/logspout-multiline
- Owner: zhmaeff
- License: mit
- Created: 2018-02-07T21:56:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-08T08:36:32.000Z (over 8 years ago)
- Last Synced: 2024-11-14T12:47:23.355Z (over 1 year ago)
- Topics: adapter, logspout, multiline
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# logspout-multiline
## This repo becomes deprecated with the merge of [PR](https://github.com/gliderlabs/logspout/pull/370/files) in official [repo](https://github.com/gliderlabs/logspout)
#### Usage
Follow the instructions in [Custom folder](https://github.com/gliderlabs/logspout/tree/master/custom) on how to build your own Logspout container with custom modules. Basically just copy the contents of the custom folder and include:
```go
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`.
#### Environment variables
* `MULTILINE_ENABLE_DEFAULT` - enable multiline logging for all containers (default `true`)
* `MULTILINE_MATCH` - determines which lines the pattern should match, one of first|last|nonfirst|nonlast (default `nonfirst`)
* `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)