Skip to content

Forward docker logs to a remote service using only a docker socket

License

Notifications You must be signed in to change notification settings

deviantintegral/docker-log-forwarder

Repository files navigation

Docker Log Forwarder

This tool uses the Docker API to capture logs and forward them to a remote system.

While normally it's best to configure syslog forwarding, some systems (such as the Home Assistant Operating System don't allow Docker to be configured that way. This tool allows for logs to be forwarded from within a container, as long as that container has access to the Docker socket.

go run forwarder.go --help
Usage of /var/folders/kh/l4v73x014452yvc02s48c3y40000gn/T/go-build1527857121/b001/exe/forwarder:
  -log-destination-address string
    	Specify the address and port to send logs to, such as localhost:5555. (default "graylog.lan:5555")

About

Forward docker logs to a remote service using only a docker socket

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages