Skip to main content

Installation

Get the single static binary running on Linux or macOS in under a minute.

Quick Start

Write your first query and filter logs in seconds.

Query Language

Learn the full SQL-like syntax: FROM, WHERE, GROUP BY, SHOW.

Temporal Correlation

The killer feature — find events that happen near other events in time.

What is Zeal?

Zeal is a single static binary that lets you query log files with a SQL-like language. It auto-detects JSON, logfmt, and plain text formats, has zero dependencies, and is built in Zig for speed.
# Find all errors instantly
zeal 'FROM /var/log/app.json WHERE level = "error"'

# The killer feature: find errors within 5s of a warning
zeal 'FROM /var/log/app.json WHERE level = "error" WITHIN 5s OF level = "warn"'

Why Zeal?

grep

Can’t filter by field values, do numeric comparisons, or correlate events.

jq

Great for JSON but can’t handle logfmt or plain text, and has no temporal logic.

zeal

A single consistent query language across all log formats — plus temporal correlation.

Key features

SQL-like syntax

Use FROM, WHERE, GROUP BY, and SHOW just like SQL — no new paradigm to learn.

Temporal correlation

WITHIN 5s OF finds events that happened near other events. Powered by binary search.

Auto-format detection

JSON, logfmt, and plain text detected automatically from the first line of your file.

2–6x faster than jq

Built in Zig with zero-copy parsing. Benchmarked at 5ms for 10,000 JSON log entries.

Follow mode

--follow tails a file with live filtering — like tail -f, but smarter.

Multiple output formats

Human-readable text with ANSI colors, NDJSON for piping, or raw original lines.

Performance

Benchmarked on 10,000 JSON log entries:
Queryzealjqgrep
Simple filter (level = "error")5ms16ms2ms
Numeric (status >= 500)6ms16ms
Compound (level = "error" AND status >= 500)5ms15ms
CONTAINS "timeout"5ms32ms2ms
Count6ms16ms2ms
Zeal is 2–6x faster than jq for structured queries while supporting all log formats, not just JSON.

Build docs developers (and LLMs) love