Add README.md

This commit is contained in:
rasmus 2022-11-06 15:04:16 +02:00
parent 1617658d1a
commit 859985e3c3
1 changed files with 11 additions and 0 deletions

11
README.md Normal file
View File

@ -0,0 +1,11 @@
# 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.