# LynxDB > LynxDB is an open-source log analytics database. Run OpenSearch Piped Processing Language (PPL) queries on local files and standard input, or ingest and query logs on a persistent server. ## Documentation home - [LynxDB documentation](https://docs.lynxdb.org/index.md): Guides, reference links and a first query example. ## Overview - [What is LynxDB?](https://docs.lynxdb.org/docs.md): Query log files and standard input with OpenSearch PPL, or store logs on a LynxDB server. ## Getting started - [LynxDB quick start](https://docs.lynxdb.org/docs/getting-started/quickstart.md): Count HTTP errors in a local file, then run the same PPL query against a LynxDB server. - [Install LynxDB](https://docs.lynxdb.org/docs/getting-started/install.md): Install LynxDB on Linux, macOS, Windows, or Docker. - [Pipe Mode (No Server)](https://docs.lynxdb.org/docs/getting-started/pipe-mode.md): Query local files and standard input with LynxDB without running a server. - [Server Mode](https://docs.lynxdb.org/docs/getting-started/server-mode.md): Run LynxDB as a persistent server with on-disk storage and a REST API. - [Write your first PPL query](https://docs.lynxdb.org/docs/getting-started/first-query.md): PPL basics in LynxDB - search, filter, aggregate, sort and extract fields. ## PPL - [OpenSearch PPL in LynxDB](https://docs.lynxdb.org/docs/ppl/overview.md): LynxDB's query language is OpenSearch Piped Processing Language, compiled to a language-independent IR. - [Getting started with PPL](https://docs.lynxdb.org/docs/ppl/getting-started.md): Run your first PPL queries on a log file and on a LynxDB server. - [PPL syntax](https://docs.lynxdb.org/docs/ppl/syntax.md): Pipelines, identifiers, backticks, literals, operator precedence and comments in PPL. - [PPL grammar](https://docs.lynxdb.org/docs/ppl/grammar.md): The PPL grammar as LynxDB's parser implements it. - [PPL data types and conversions](https://docs.lynxdb.org/docs/ppl/data-types.md): PPL types, LynxDB's value types, and the conversions between them. - [PPL expressions and operators](https://docs.lynxdb.org/docs/ppl/expressions.md): Operators, comparisons, NULL handling, conditional expressions and subqueries in PPL. - [PPL search semantics](https://docs.lynxdb.org/docs/ppl/search-and-types.md): How PPL search expressions match events and use LynxDB's indexes. - [PPL time ranges and time series](https://docs.lynxdb.org/docs/ppl/time-series.md): Time ranges, timechart, bin, span and time functions in PPL. - [PPL joins and subsearches](https://docs.lynxdb.org/docs/ppl/joins-and-subsearches.md): join, lookup, append, union, multisearch and subqueries in PPL. - [PPL command guide](https://docs.lynxdb.org/docs/ppl/command-guide.md): How to use the main PPL commands in LynxDB, with LynxDB-specific behavior. - [PPL command reference](https://docs.lynxdb.org/docs/ppl/commands.md): Look up which OpenSearch PPL commands LynxDB supports, including command options, limits and differences. - [PPL scalar function guide](https://docs.lynxdb.org/docs/ppl/function-guide.md): How PPL scalar functions behave in LynxDB, by category, with examples. - [PPL scalar function reference](https://docs.lynxdb.org/docs/ppl/functions.md): Look up the OpenSearch PPL scalar functions LynxDB supports and how they map to its expression engine. - [PPL aggregation function guide](https://docs.lynxdb.org/docs/ppl/aggregation-guide.md): How PPL aggregation functions behave in LynxDB. - [PPL aggregation function reference](https://docs.lynxdb.org/docs/ppl/aggregations.md): Look up the LynxDB PPL aggregation functions for stats, timechart and other commands, including how partial results combine. - [OpenSearch PPL compatibility in LynxDB](https://docs.lynxdb.org/docs/ppl/feature-matrix.md): Which OpenSearch PPL commands, functions and options LynxDB supports, with its deviations. - [PPL errors and troubleshooting](https://docs.lynxdb.org/docs/ppl/errors.md): PPL error kinds, their positions and hints, and the REST error codes they map to. - [PPL examples](https://docs.lynxdb.org/docs/ppl/examples.md): Worked PPL queries for common log analysis tasks. - [PPL pipeline execution](https://docs.lynxdb.org/docs/ppl/pipeline-execution.md): How LynxDB runs a compiled PPL plan with the columnar executor and the row operators, locally and on a server. - [PPL query performance](https://docs.lynxdb.org/docs/ppl/performance.md): Which parts of a PPL query let LynxDB read less data, and how to write fast queries. ## Guides - [Ingest Data](https://docs.lynxdb.org/docs/guides/ingest-data.md): Get logs into LynxDB with the CLI, the REST API, log shippers and the syslog receiver. - [Filebeat to LynxDB](https://docs.lynxdb.org/docs/guides/ingest-data/filebeat.md): Point Filebeat at LynxDB using the Elasticsearch bulk-compatible endpoint. - [Fluent Bit to LynxDB](https://docs.lynxdb.org/docs/guides/ingest-data/fluent-bit.md): Send Fluent Bit logs to LynxDB through the Elasticsearch output plugin. - [Vector to LynxDB](https://docs.lynxdb.org/docs/guides/ingest-data/vector.md): Send Vector logs to LynxDB through the Elasticsearch sink. - [OpenTelemetry Collector to LynxDB](https://docs.lynxdb.org/docs/guides/ingest-data/opentelemetry.md): Send OpenTelemetry Collector logs to LynxDB using OTLP HTTP or OTLP gRPC. - [Splunk HEC to LynxDB](https://docs.lynxdb.org/docs/guides/ingest-data/splunk-hec.md): Send Splunk HTTP Event Collector events to LynxDB. - [Field Extraction](https://docs.lynxdb.org/docs/guides/field-extraction.md): Which fields LynxDB extracts when it ingests events, and how to extract more at query time with parse, rex, grok, spath and regular expression functions. - [Working with JSON Logs](https://docs.lynxdb.org/docs/guides/json-processing.md): How LynxDB stores JSON events and how to query them with dotted field names, expand, flatten, spath and the json_* functions. - [Analyze Kubernetes Audit Logs](https://docs.lynxdb.org/docs/guides/kubernetes-audit-logs.md): Query Kubernetes API audit JSON Lines with LynxDB to find anonymous requests, source IPs, and targeted resources. - [Scripting with LynxDB](https://docs.lynxdb.org/docs/guides/scripting-and-pipes.md): Use LynxDB in shell scripts, Unix pipelines, CI jobs and scheduled reports, with JSON lines, CSV, jq and exit codes. ## CLI reference - [LynxDB command-line reference](https://docs.lynxdb.org/docs/cli/overview.md): How the lynxdb binary runs queries, global flags, connection settings, the command map and exit codes. - [lynxdb query](https://docs.lynxdb.org/docs/cli/query.md): Run PPL queries against a LynxDB server, local files or standard input. - [lynxdb explain](https://docs.lynxdb.org/docs/cli/explain.md): Show how the server compiles and plans a PPL query, with optional execution profile. - [lynxdb ingest](https://docs.lynxdb.org/docs/cli/ingest.md): Send log lines, NDJSON, CSV and Elasticsearch bulk files to a LynxDB server. - [lynxdb server](https://docs.lynxdb.org/docs/cli/server.md): Start the LynxDB server - flags, data directory, TLS, authentication, receivers, signals and systemd. - [lynxdb status, fields and jobs](https://docs.lynxdb.org/docs/cli/status.md): Inspect a LynxDB server - status and health, indexes, query jobs, the field catalog and the CLI version. - [lynxdb login, logout and auth](https://docs.lynxdb.org/docs/cli/auth.md): Save credentials for a LynxDB server and manage its API keys. - [lynxdb config](https://docs.lynxdb.org/docs/cli/config-cmd.md): Show, validate, edit and reload LynxDB configuration, and manage connection profiles. - [Output Formats](https://docs.lynxdb.org/docs/cli/output-formats.md): The --format values of the LynxDB CLI, what auto chooses, and the flags that shape human tables. - [Shell Completion](https://docs.lynxdb.org/docs/cli/completion.md): Tab completion for the LynxDB CLI in Bash, Zsh, Fish and PowerShell. ## REST API - [LynxDB REST API reference](https://docs.lynxdb.org/docs/api/overview.md): LynxDB HTTP API base paths, authentication and scopes, response and error envelopes, common headers, size limits and the full endpoint map. - [REST API log ingestion and indexes](https://docs.lynxdb.org/docs/api/ingest.md): NDJSON event ingest, raw log text ingest, and the calls that create, describe and list indexes. - [REST API PPL queries, jobs and streaming](https://docs.lynxdb.org/docs/api/query.md): Run PPL queries over HTTP - sync, async and hybrid modes, the result envelope, error codes, explain, the PPL catalog, jobs and NDJSON streaming. - [REST API event histogram](https://docs.lynxdb.org/docs/api/histogram.md): GET /histogram returns event counts per time bucket. - [REST API field catalog and top values](https://docs.lynxdb.org/docs/api/fields.md): The field catalog and the top values of a field. - [REST API health, metrics and configuration](https://docs.lynxdb.org/docs/api/server.md): Health checks, Prometheus metrics, status and stats snapshots, runtime configuration, API keys and profiling endpoints. - [REST API compatibility endpoints](https://docs.lynxdb.org/docs/api/compatibility.md): Elasticsearch bulk ingest and setup stubs, Splunk HEC ingest and OpenTelemetry OTLP log ingest. ## Configuration - [LynxDB server and CLI configuration](https://docs.lynxdb.org/docs/configuration/overview.md): How LynxDB resolves server configuration, where it finds config files, what .lynxdbrc does, and which settings a reload applies. - [Server Settings](https://docs.lynxdb.org/docs/configuration/server.md): Top-level server settings, TLS, auth and HTTP settings, and every lynxdb server flag. - [Storage Settings](https://docs.lynxdb.org/docs/configuration/storage.md): Configure the data directory, time partitions, flushing, event time and retention of the LynxDB columnar store. - [Query Settings](https://docs.lynxdb.org/docs/configuration/query.md): Concurrency, the synchronous wait, result limits and job lifetime of LynxDB queries. - [Ingest Settings](https://docs.lynxdb.org/docs/configuration/ingest.md): Request limits, parse mode, and the Elasticsearch, Splunk HEC and OTLP receivers in the ingest section of the LynxDB config file. - [Syslog Receiver](https://docs.lynxdb.org/docs/configuration/syslog.md): Configure the native syslog receiver that ingests RFC 5424, RFC 3164 and raw messages over UDP, TCP and TLS. - [Environment Variables](https://docs.lynxdb.org/docs/configuration/environment-variables.md): Every LYNXDB_* environment variable the server and the CLI read, with the config key each one sets. ## Deployment - [Single Node Deployment](https://docs.lynxdb.org/docs/deployment/single-node.md): Run LynxDB as a single-node server under systemd with persistent storage, a config file, and reloadable settings. - [Docker Deployment](https://docs.lynxdb.org/docs/deployment/docker.md): Run LynxDB with Docker and Docker Compose - image tags, volumes, environment variables and health checks. - [Kubernetes Deployment](https://docs.lynxdb.org/docs/deployment/kubernetes.md): Run LynxDB on Kubernetes as a StatefulSet with a persistent volume, a ConfigMap, probes and Prometheus scraping. - [TLS and Authentication](https://docs.lynxdb.org/docs/deployment/tls-auth.md): Serve LynxDB over HTTPS, turn on API key authentication, manage keys and scopes, and connect clients and shippers. ## Operations - [Monitoring](https://docs.lynxdb.org/docs/operations/monitoring.md): Monitor LynxDB health and performance -- health, status and stats endpoints, the status command, Prometheus metrics, request logs and query profiles. - [Backup and Restore](https://docs.lynxdb.org/docs/operations/backup-restore.md): Back up and restore LynxDB -- the data directory layout, consistent copies of a stopped server or a filesystem snapshot, and restoring whole indexes. - [Retention and Data Lifecycle](https://docs.lynxdb.org/docs/operations/retention.md): Configure LynxDB data retention -- time partitions, whole-partition expiry and measuring storage use. - [Performance Tuning](https://docs.lynxdb.org/docs/operations/performance-tuning.md): Write LynxDB queries that read less data, and tune ingest, partitions and query concurrency for a workload. - [Shipper Conformance Matrix](https://docs.lynxdb.org/docs/operations/shipper-conformance.md): Nightly compatibility coverage and quarantine reasons for drop-in log shippers. - [Troubleshooting](https://docs.lynxdb.org/docs/operations/troubleshooting.md): Troubleshoot common LynxDB issues -- connectivity, query errors, ingest, storage and startup problems. - [Upgrading LynxDB](https://docs.lynxdb.org/docs/operations/upgrading.md): Upgrade LynxDB by replacing the binary and restarting -- install channels, upgrade procedures, config compatibility, and rollback. ## Architecture - [Architecture Overview](https://docs.lynxdb.org/docs/architecture/overview.md): How the LynxDB CLI, HTTP server, PPL compiler, query executors and per-index columnar stores fit together. - [Storage](https://docs.lynxdb.org/docs/architecture/storage.md): Follow a LynxDB event through time partitioning, sorted runs, immutable parts, manifest commits, merges and recovery. - [Indexing and Pruning](https://docs.lynxdb.org/docs/architecture/indexing.md): How time bounds, sort keys, token filters, column statistics and exact counts reduce the work of a query. - [Query Engine](https://docs.lynxdb.org/docs/architecture/query-engine.md): How LynxDB runs a query -- PPL compiled to a language-independent IR and optimized, then run by the columnar executor over the stores and by the row operators over what the executor does not take. - [Elasticsearch Compatibility Stubs](https://docs.lynxdb.org/docs/architecture/es-stubs.md): Compatibility endpoints LynxDB exposes for log shippers that expect Elasticsearch management APIs. - [Design Decisions](https://docs.lynxdb.org/docs/architecture/design-decisions.md): Key design decisions behind LynxDB -- columnar storage, a store per index partitioned by time, buffered writes without a write-ahead log, per-block token filters, two executors, OpenSearch PPL compiled to a language-independent IR, Go, a single binary and schema-on-read. ## Contributing - [Development Setup](https://docs.lynxdb.org/docs/contributing/development-setup.md): Clone, build, test, and run LynxDB from source. Toolchain, mise tasks, and development workflow. - [Project Structure](https://docs.lynxdb.org/docs/contributing/project-structure.md): Package map of the LynxDB codebase -- what each package does and how they relate. - [Coding Guidelines](https://docs.lynxdb.org/docs/contributing/coding-guidelines.md): Go coding standards, error handling, context usage, testing, query-language changes, and commit conventions for contributing to LynxDB. - [PPL architecture](https://docs.lynxdb.org/docs/contributing/ppl-architecture.md): How a PPL query becomes canonical IR, an optimized plan and a pipeline of operators. - [PPL-to-IR compilation](https://docs.lynxdb.org/docs/contributing/ppl-compilation.md): How LynxDB lowers each PPL command and expression to canonical IR operators. - [IR specification](https://docs.lynxdb.org/docs/contributing/ir.md): The canonical intermediate representation between query languages and the LynxDB engine. - [IR optimizer](https://docs.lynxdb.org/docs/contributing/ir-optimizer.md): The rewrite rules pkg/ir/opt applies to IR plans. - [Adding commands](https://docs.lynxdb.org/docs/contributing/adding-commands.md): How to add a PPL command or command option to LynxDB. - [Adding functions](https://docs.lynxdb.org/docs/contributing/adding-functions.md): How to add a scalar or aggregation function to LynxDB's IR registry and PPL catalogs. ## Optional - [Complete documentation](https://docs.lynxdb.org/llms-full.txt): All listed pages in a single Markdown file. - [OpenAPI JSON](https://docs.lynxdb.org/openapi.json): REST API endpoints and schemas. - [OpenAPI YAML](https://docs.lynxdb.org/openapi.yaml): The same API contract in YAML. - [LynxDB website and blog index](https://lynxdb.org/llms.txt): Product site and articles.