Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 823 Bytes

MODULES.md

File metadata and controls

26 lines (19 loc) · 823 Bytes

Instructions on how to build/test your own modules.

Getting Started

  1. Fork this repository
  2. Create a new repository for your adapter
  3. Copy something like raw.go to get started.
  4. Add your module to modules.go

Now build and run logspout with your adapter, replace SYSLOG with your own syslog url.

SYSLOG=syslog://logs.papertrailapp.com:55555 ./run-custom.sh

Now let's add your new adapter to the running logspout (replace address below with your final stats destination):

curl http://localhost:8000/routes -d '{
  "adapter": "myadapter",
  "filter_sources": ["stdout" ,"stderr"],
  "address": "localhost:1234"
}'

Now any log messages that come out of any container on your machine will go through your adapter.