Skip to main content

📜 Collecting Logs

You can read logs using Docker:

docker logs laniakea

Forwarding Logs to Remote Syslog​

To set syslog as the default logging driver for all containers, modify /etc/docker/daemon.json:

{
"log-driver": "syslog",
"log-opts": {
"syslog-address": "udp://syslog-server:514"
}
}

After modifying, restart the Docker daemon and Laniakea container with syslog logging driver:

sudo systemctl restart docker

docker run -d \
--name laniakea \
--restart unless-stopped \
-p 80:80 \
--log-driver=syslog \
-v /etc/laniakea/:/etc/laniakea/ \
laniakea-amd64

For more informtaion refer to official Docker documentation.