Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

sfriedel/logspout-logstash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logspout-logstash

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. Basically just copy the contents of the custom folder and include:

import (
  _ "github.com/looplab/logspout-logstash"
  _ "github.com/gliderlabs/logspout/transports/udp"
)

in modules.go.

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

In your logstash config, set the input codec to json e.g:

input {
  udp {
    port => 5000
    codec => json
  }
}

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%