---
title: "Logbrook"
description: "Self-hosted log search for structured application logs."
---

> Documentation Index
> Fetch the complete documentation index at: https://sandrinodm.github.io/logbrook/llms.txt
> Use this file to discover all available pages before exploring further.

# Logbrook

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](https://sandrinodm.github.io/logbrook/_nimbus/md/v1ku6y/logbrook-banner.webp)

## Try it

This starts Logbrook with throwaway credentials and no persistent volume. The [quickstart](https://sandrinodm.github.io/logbrook/get-started/quickstart/) walks through sending and searching an event.

```sh
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
```

<div class="flex flex-wrap gap-3">

Quickstart

What is Logbrook

</div>

## 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.](https://sandrinodm.github.io/logbrook/_nimbus/md/8mkyat/logbrook-architecture.webp)

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](https://sandrinodm.github.io/logbrook/send-logs/http/).
- **Named indexes** — Each index has its own retention period and disk-size target. [Learn more](https://sandrinodm.github.io/logbrook/concepts/indexes-services-sources/).
- **Search, facets, histograms** — Filter by time, source, service, level, message and attributes, then count, group or bucket the results. [Learn more](https://sandrinodm.github.io/logbrook/query/search/).
- **Live tail** — Stream new events over server-sent events, with replay after a reconnect. [Learn more](https://sandrinodm.github.io/logbrook/query/live-tail/).
- **Parquet archival** — Older events move to local Parquet files and stay searchable. [Learn more](https://sandrinodm.github.io/logbrook/concepts/archives-and-retention/).
- **Web UI** — A separate browser interface for searching, live tail and index management. [Learn more](https://sandrinodm.github.io/logbrook/web-ui/).
- **CLI** — The same executable queries, counts and manages indexes on a running server. [Learn more](https://sandrinodm.github.io/logbrook/reference/cli/).
- **Fluent Forward** — An optional receiver for Docker's fluentd logging driver, Fluentd and Fluent Bit. [Learn more](https://sandrinodm.github.io/logbrook/send-logs/docker-forward/).
- **Operations** — Health and readiness endpoints, Prometheus metrics, and a Distroless image that runs as UID 10001. [Learn more](https://sandrinodm.github.io/logbrook/operate/production/).

## Where to go next

- [Get started](https://sandrinodm.github.io/logbrook/get-started/quickstart/) — Run Logbrook and search your first event.
- [Concepts](https://sandrinodm.github.io/logbrook/concepts/events-and-time/) — Events, indexes, search and retention.
- [Send logs](https://sandrinodm.github.io/logbrook/send-logs/http/) — HTTP, Pino, Docker and file import.
- [Query](https://sandrinodm.github.io/logbrook/query/search/) — Filters, aggregations, export and live tail.
- [Web UI](https://sandrinodm.github.io/logbrook/web-ui/) — Search, tail and manage indexes in the browser.
- [Configure](https://sandrinodm.github.io/logbrook/configure/configuration-file/) — Config file, credentials, indexes and retention.
- [Operate](https://sandrinodm.github.io/logbrook/operate/production/) — Production setup, limits, metrics and backups.
- [Reference](https://sandrinodm.github.io/logbrook/reference/cli/) — CLI, HTTP API and glossary.
- [AI agents](https://sandrinodm.github.io/logbrook/ai-agents/agent-skill/) — Install and use the Logbrook agent skill.

Source: https://sandrinodm.github.io/logbrook/index.mdx
