Skip to content

messede-degod/logPipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogPipe

Accept logs via cmdline and ship them to elasticsearch

Building

  • go build -o bin/logpipe or via docker
  • docker build -t sf-logpipe .
  • docker-compose up -d

Adding a log entry

  • Start the program - ./bin/logpipe (ignore if using docker)
  • Then run echo "Myattribute:MyValue|Myattribute2:MyValue2|" | nc -U ./logPipe.sock

Notes:

  • Log format is "attr:val|", each attribute-value pair must be terminated with a pipe(|)
  • Timestamp is automatically added to log entries
  • Elasticsearch credentials must be configured in config.yaml
  • Program/Container must be restarted after config changes

About

Pipe logs from cmdline to elasticsearch

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published