2232a748db843e91ec75f0ec05b9307a761f4a72
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%