rasmus 7e59c24c13 | ||
---|---|---|
pkg | ||
vendor | ||
.drone.yml | ||
.gitignore | ||
Dockerfile | ||
README.md | ||
go.mod | ||
go.sum | ||
main.go |
README.md
logmower-shipper
Watches log directory for logs, and ships them to mongo.
- Running:
go run .
- Building:
go build .
Files
mower.go
acts as the main routine: initializes (includingmongo.go
) and watches for new files in log directory.submit.go
watches file contents and tails them, streaming tosender.go
.sender.go
batches lines and ships them to mongo.