d28a4bec05eae7b0c871dd5caa5f45a5c37240d3
				
			
			
		
	logmower-shipper
Watches log directory for logs, and ships them to mongo.
- Running: go run .
- Building: go build .
Files
- pkg/globalsdefines globals. This is used for Prometheus namespace, and for forwarding static global CLI configuration with less clutter.
- main.goserves- /metricsand runs- watcher.go.
- pkg/watchermain routine; initializes (including- mongo.go) and watches for new log files.- pkg/mongoprovides statically safe and central tools to interact with the database.
- pkg/utilprovides additional utility functions.
 
- pkg/filehandles file lifecycle; watches files and tails them, streaming lines to- pkg/lines.
- pkg/linesprocesses lines and streams them to- pkg/sender.
- pkg/senderbatches lines and ships them to mongo.
Description
				
					Languages
				
				
								
								
									Go
								
								98.3%
							
						
							
								
								
									Dockerfile
								
								1.7%