Real-time container log collector and exporter for Dockhost platform.
384
Real-time container log collector and exporter for Dockhost platform.
Quick Start:
docker run -e DOCKHOST_TOKEN=your_token dockhost/logger:latest
Collects and exports container logs from the Dockhost platform in real-time.
Dockhost Logger Service automatically discovers projects and containers on the Dockhost platform, collects their logs in real-time, and exports them through a flexible pipeline architecture. The service processes logs through configurable sources, transforms, and multiple output backends simultaneously.
| Backend | Description |
|---|---|
| Console | Output logs to stdout in text or JSON format |
| File | Write logs to files with rotation and buffering |
| Syslog | Send logs to syslog server via UDP or TCP |
| OpenSearch | Index logs with retention policies and dashboards |
| Logflare | Send logs to Logflare via HTTP API |
| Loki | Send logs to Grafana Loki via Loki Push API |
| VictoriaLogs | Send logs to VictoriaLogs via Loki-compatible API |
| OTLP | Send logs via OpenTelemetry Protocol (OTLP/HTTP) |
Run with minimal configuration:
docker run -e DOCKHOST_TOKEN=your_token dockhost/logger:latest
| Variable | Required | Default | Description |
|---|---|---|---|
DOCKHOST_TOKEN | Yes | — | Dockhost API access token |
DOCKHOST_CONFIG_PATH | No | Auto-detect | Path to YAML configuration file |
Mount a custom configuration file to enable backends:
docker run \
-e DOCKHOST_TOKEN=your_token \
-v ./config.yaml:/app/config.yaml \
dockhost/logger:latest
Example config.yaml:
# Define log sources
sources:
all-logs:
auth-only:
projects:
- name: my-project
containers:
- regex: ".*-auth"
# Transform logs
transforms:
filter-errors:
type: filter
action: keep
condition: '.level == "error"'
# Configure backends
backends:
console-all:
type: console
enabled: true
sources: [all-logs]
config:
format: text
opensearch-all:
type: opensearch
enabled: true
sources: [all-logs]
config:
host: http://localhost:9200
index: dockhost-logs
indexStrategy: daily
Quick Start:
docker run -e DOCKHOST_TOKEN=your_token dockhost/logger:latest
With custom configuration:
docker run \
-e DOCKHOST_TOKEN=your_token \
-v ./config.yaml:/app/config.yaml \
dockhost/logger:latest
Content type
Image
Digest
sha256:b962010e5…
Size
63.7 MB
Last updated
5 days ago
docker pull dockhost/logger