A lightweight, web-based Docker container log viewer with a clean, modern interface.
╦ ╔═╗╔═╗╔═╗╔═╗╦═╗╦═╗
║ ║ ║║ ╦║ ╦╠═╣╠╦╝╠╦╝
╩═╝╚═╝╚═╝╚═╝╩ ╩╩╚═╩╚═
docker run -d \
--name loggarr \
-p 3456:3456 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /etc/localtime:/etc/localtime \
schenanigans/loggarr:latest
Access the web interface at: http://localhost:3456
Loggarr is a minimal Alpine-based Docker container that provides a web interface for viewing real-time logs from your Docker containers. It's designed to be lightweight, fast, and easy to use.
docker run -d \
--name loggarr \
--restart unless-stopped \
-p 3456:3456 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /etc/localtime:/etc/localtime \
schenanigans/loggarr:latest
Create a compose.yaml file:
services:
loggarr:
image: schenanigans/loggarr:latest
container_name: loggarr
ports:
- "3456:3456"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime
restart: unless-stopped
Then run:
docker compose up -d
| Variable | Default | Description |
|---|---|---|
LOG_LEVEL | info | Logging verbosity (debug, info, warn, error, fatal) |
ENABLE_LOG_SAVING | false | Enable saving logs to disk (requires volume mount) |
LOG_TAIL_SIZE | 50 | Number of initial lines to show when starting log stream |
MAX_BUFFER_SIZE | 10 | Max buffer size for log streaming (in MB) |
Run with debug logging:
docker run -d \
--name loggarr \
-e LOG_LEVEL=debug \
-p 3456:3456 \
-v /var/run/docker.sock:/var/run/docker.sock \
schenanigans/loggarr:latest
Run on a different port:
docker run -d \
--name loggarr \
-p 8080:3456 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /etc/localtime:/etc/localtime \
schenanigans/loggarr:latest
Enable log saving:
docker run -d \
--name loggarr \
-e ENABLE_LOG_SAVING=true \
-p 3456:3456 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /etc/localtime:/etc/localtime \
-v ./logs:/app/logs \
schenanigans/loggarr:latest
When log saving is enabled (ENABLE_LOG_SAVING=true), you can save logs to disk:
{container}-{timestamp}.logSaved logs include a metadata header:
# Loggarr Export
# Container: nginx
# Exported: 2025-01-10T23:45:00.123Z
# Total Lines: 150
==================================================
[Log entries follow...]
Loggarr accesses container logs through the Docker socket mount, so it can view logs from any container regardless of network configuration. You don't need to put containers on the same network as Loggarr for log viewing to work.
-v /var/run/docker.sock:/var/run/docker.sock:rodocker psdocker psdocker logs <container_name>When Loggarr starts, it displays version information in the console:
The version is also displayed in the web interface header.
docker pull schenanigans/loggarr:latest