Skip to content

dkiser/logspout-syslog-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

logspout-syslog-json

NOTE: this overrides the standard syslog adapter (e.g. cannot include both in your modules.go for the custom image)

A minimalistic adapter for github.com/gliderlabs/logspout to write to Syslog+UDP with a JSON payload in the msg field of the Syslog message.

Follow the instructions in 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:

import (
	_ "github.com/dkiser/logspout-syslog-json/adapters/json"
	_ "github.com/dkiser/logspout-syslog-json/adapters/syslog"
	_ "github.com/gliderlabs/logspout/transports/udp"
)

in modules.go.

Use by setting ROUTE_URIS=syslog//host:port to the Syslog host and port for UDP.

About

Custom logspout adapter for Syslog+JSON payload

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages