logmower-shipper/README.md

12 lines
387 B
Markdown
Raw Normal View History

2022-11-06 13:04:16 +00:00
# logmower-shipper
Watches log directory for logs, and ships them to mongo.
- Running: `go run .`
- Building: `go build .`
## Files
1. `mower.go` acts as the main routine: initializes (including `mongo.go`) and watches for new files in log directory.
2. `submit.go` watches file contents and tails them, streaming to `sender.go`.
3. `sender.go` batches lines and ships them to mongo.