Skip to content
lynxbasePublic

About

A lightweight schema-on-read analytics in a single binary

Topics

Resources

Contributing

Security policy

Stars

299 stars

Watchers

1 watching

Forks

Repository files navigation

LynxDB

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.

Benchmark

JSONBench results for 1 billion events on m6i.8xlarge: combined relative time and storage size, load time, storage size and five query times for LynxDB, ClickHouse, VictoriaLogs, Elasticsearch and OpenSearch

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.

Install

Build the CLI from this checkout with Go 1.26 or later.

go build -o lynxdb ./cmd/lynxdb

For downloadable binaries, Homebrew, and Docker, see the installation guide.

Query logs locally

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-stats
errors,service
2,api

The 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.

Store logs on a server

Start the server from the repository root.

./lynxdb server

In 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.

Documentation

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

Contributing

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.

Apache License 2.0

About

A lightweight schema-on-read analytics in a single binary

Topics

Resources

Contributing

Security policy

Stars

299 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages