Skip to content

Logbrook

Self-hosted log search for structured application logs.

Updated

Logbrook is a self-hosted log search server for structured application logs. One Rust executable receives JSON logs over HTTP, stores them in embedded DuckDB and local Parquet files, and searches them through a CLI and an HTTP API.

Logbrook

Try it

This starts Logbrook with throwaway credentials and no persistent volume. The quickstart walks through sending and searching an event.

docker run --rm -p 127.0.0.1:3100:3100 \
  -e LOGBROOK_INGEST_TOKEN="$(openssl rand -hex 24)" \
  -e LOGBROOK_READ_TOKEN="$(openssl rand -hex 24)" \
  ghcr.io/sandrinodm/logbrook:0.5.0

How it works

Each index keeps recent events in DuckDB and moves older ones into Parquet archives. Searches read both stores, so archived events stay searchable.

Web apps, APIs, and workers send logs to Logbrook. Recent logs are stored in DuckDB and archived to Parquet files. The CLI and other apps send queries to Logbrook and receive results from both stores.

Logbrook runs on one server with one data directory, and needs no external database or message queue.

Features

HTTP ingestion

Send Pino-style JSON arrays or NDJSON. A request succeeds only after the batch is committed. Learn more.

Named indexes

Each index has its own retention period and disk-size target. Learn more.

Search, facets, histograms

Filter by time, source, service, level, message and attributes, then count, group or bucket the results. Learn more.

Live tail

Stream new events over server-sent events, with replay after a reconnect. Learn more.

Parquet archival

Older events move to local Parquet files and stay searchable. Learn more.

Web UI

A separate browser interface for searching, live tail and index management. Learn more.

CLI

The same executable queries, counts and manages indexes on a running server. Learn more.

Fluent Forward

An optional receiver for Docker’s fluentd logging driver, Fluentd and Fluent Bit. Learn more.

Operations

Health and readiness endpoints, Prometheus metrics, and a Distroless image that runs as UID 10001. Learn more.

Where to go next

Type to search…

↑↓ navigate↵ selectEsc close