9363ec9d707dc777b5dc8733105752129e20c57d
logmower-shipper
Watches log directory for logs, and ships them to mongo.
- Running:
go run . - Building:
go build .
Files
pkg/globalsdefines globals. This is used for Prometheus namespace, and for forwarding static global CLI configuration with less clutter.main.goserves/metricsand runswatcher.go.pkg/watchermain routine; initializes (includingmongo.go) and watches for new log files.pkg/mongoprovides statically safe and central tools to interact with the database.pkg/utilprovides additional utility functions.
pkg/filehandles file lifecycle; watches files and tails them, streaming lines topkg/lines.pkg/linesprocesses lines and streams them topkg/sender.pkg/senderbatches lines and ships them to mongo.
Description
Languages
Go
98.3%
Dockerfile
1.7%