Cloud native log shipping daemon written in Go
|
||
---|---|---|
cmd | ||
.gitignore | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
go.work | ||
go.work.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.