Cloud native log shipping daemon written in Go
cmd | ||
vendor | ||
.drone.yml | ||
.gitignore | ||
Dockerfile | ||
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.