LynxDB is a log analytics database in one binary. Query local files or stdin, or run a server that stores logs on disk. Both modes use OpenSearch Piped Processing Language (PPL).
Documentation · Releases · Benchmarks · Discord
LynxDB is in active development. APIs, the storage format, and query behavior may change between releases.
JSONBench loads
Bluesky events as JSON and times five queries over them. The chart is its
page for 1 billion events on an AWS m6i.8xlarge, with five of the page's
systems selected. It shows the Combined metric, which weighs the hot run at
60%, the cold run at 20%, storage size at 10% and load time at 10%.
The LynxDB row was measured on 2026-11-20 at commit ad9d7e3b. The other
rows are the results published in ClickBench. The LynxDB entry and its raw
results are in
json/lynxdb
of the lynxbase/ClickBench fork. BENCHMARKS.md describes
the benchmarks kept in this repository.
Build the CLI from this checkout with Go 1.26 or later.
go build -o lynxdb ./cmd/lynxdbFor downloadable binaries, Homebrew, and Docker, see the installation guide.
Count HTTP 5xx responses by service. --file loads files, or standard
input for -, into the temporary index main, which a local query reads
when it names no source.
printf '%s\n' \
'{"status":200,"service":"api"}' \
'{"status":503,"service":"api"}' \
'{"status":502,"service":"api"}' |
./lynxdb query --file - '
where status >= 500
| stats count() as errors by service' \
--format csv --no-statserrors,service
2,apiThe CLI keeps JSON fields and extracts timestamps, key=value pairs, and
fields from common text formats such as combined access logs and syslog.
See pipe mode
for input formats and shell examples.
Start the server from the repository root.
./lynxdb serverIn a second terminal, ingest a local file and query the web index.
./lynxdb ingest access.log --index web
./lynxdb query 'source=web | stats count() as events'The server listens on localhost:3100 by default. It stores events in
time-partitioned columnar indexes. Token filters let searches skip blocks
that cannot match. Ingest endpoints accept NDJSON, Elasticsearch _bulk,
OpenTelemetry logs, Splunk HEC, and syslog.
| Task | Guide |
|---|---|
| Write a query or look up a command | PPL guide · Supported features |
| Send logs from a shipper | Ingest data |
| Set up a persistent server | Single-node deployment · Configuration |
| Automate queries and ingestion | CLI · REST API |
| Read about the engine and storage | Architecture |
See the contributor guide, the changelog, and GitHub issues.
LynxDB draws on OpenSearch for PPL,
ClickHouse for analytical execution,
VictoriaLogs for log storage,
and Unix tools such as grep, awk, and jq for shell composition.
