Minimal self-contained logger: syslog UDP, HTTP ingest, SQLite, polished UI. Single image, low deps
3.7K
bun-logger is a minimal, self-contained logger with no unnecessary dependencies and a beautiful built-in UI—ingest, storage, and browsing in one image. It accepts syslog UDP (RFC5424) and HTTP (POST /ingest), persists to SQLite, and serves a REST API plus the web UI.
docker run -d --name bun-logger \
-p 9494:9494 -p 5514:5514/udp \
-v bun-logger-data:/data \
uonick/bun-logger:latest
Persist the database on a named volume or bind mount (default DB path: /data/logs.sqlite):
-v /path/on/host:/data
| Variable | Default | Description |
|---|---|---|
HTTP_PORT | 9494 | Port for HTTP server and UI |
SYSLOG_UDP_PORT | 5514 | UDP port for RFC5424 syslog input |
DATABASE_PATH | /data/logs.sqlite | SQLite database file path |
LOG_BUFFER_SIZE | 10 | Log events buffered before flush |
LOG_BUFFER_FLUSH_MS | 2000 | Maximum delay between buffer flushes |
LOG_RETENTION_DAYS | 7 | Retention window length in days |
CLEANUP_CRON | 0 * * * * | Cron schedule for retention cleanup |
SQLITE_JOURNAL_MODE | WAL | SQLite journal durability mode |
SQLITE_SYNCHRONOUS | NORMAL | SQLite fsync behavior on commits |
SQLITE_BUSY_TIMEOUT_MS | 5000 | Wait for locks before SQLITE_BUSY |
services:
bun-logger:
image: uonick/bun-logger:latest
ports:
- "9494:9494"
- "5514:5514/udp"
volumes:
- ./data:/data
api:
image: my-api:latest
depends_on:
- bun-logger
logging:
driver: syslog
options:
syslog-address: "udp://bun-logger:5514"
syslog-format: "rfc5424"
tag: "{{.Name}}"
After startup, open http://localhost:9494/ for the UI.
Content type
Image
Digest
sha256:5c671b855…
Size
70.3 MB
Last updated
7 months ago
docker pull uonick/bun-logger