martensson / logspout-logstash

A minimalistic adapter for github.com/gliderlabs/logspout to write to Logstash UPD improved to passthrough log messages already in JSON format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logspout-logstash

Modified by me in this fork to passthrough log messages already in JSON format and add the docker specific fields added. Instead of creating a new JSON object and included the JSON-log message as escaped JSON in the 'message' field.

A minimalistic adapter for github.com/gliderlabs/logspout to write to Logstash UDP

Follow the instructions in https://github.com/gliderlabs/logspout/tree/master/custom on how to build your own Logspout container with custom modules. Basicly just copy the contents of the custom folder and include github.com/looplab/logspout-logstash in modules.go.

Use by setting ROUTE_URIS=logstash://host:port to the Logstash host and port for UDP.

About

A minimalistic adapter for github.com/gliderlabs/logspout to write to Logstash UPD improved to passthrough log messages already in JSON format

License:Apache License 2.0


Languages

Language:Go 100.0%