Blog

ES|QL Data Federation: Elasticsearch now queries data where it lives

Query Parquet, NDJSON, and CSV/TSV files in Amazon S3 directly from Elasticsearch using the same FROM syntax and Kibana. With ES|QL Data Federation, string filters run up to 115x faster, and the schema is inferred automatically, with no mapping needed.

Get hands-on with Elasticsearch: Dive into our sample notebooks in the Elasticsearch Labs repo, start a free cloud trial, or try Elastic on your local machine now.

ES|QL Data Federation is in technical preview in Elastic Cloud Serverless, and coming to Elasticsearch 9.6 in December and supports querying Parquet, NDJSON, and CSV/TSV files (including gzip, zstd, and snappy compressed) in Amazon S3, with schema inferred at query time. More blob stores and file formats are on the way.

Elasticsearch Query Language (ES|QL) Data Federation is available now as a technical preview in Elastic Cloud Serverless, and coming to Elasticsearch 9.6 in December on Elastic Cloud Hosted and Elastic Self-Managed. This means you can query Parquet, NDJSON, CSV and TSV files in Amazon S3 directly from Elasticsearch by using the same FROM syntax and Kibana instance, with no ingestion or second engine required. String filter performance is now 40–115x faster than prior approaches through dictionary-aware single instruction, multiple data (SIMD) evaluation. And TopN pushdown speeds up SORT + LIMIT queries by 3.6–4.3x. For the future, Google Cloud Storage, Azure Blob Storage, and databases are on the roadmap. Your external data stays where it lives, and your teams query it from the same Kibana they already use.

Video Thumbnail

Breaking down data silos: Why teams want to query data where it lives

Your data lives in two places. Some of it's in Elasticsearch, where it’s indexed and searchable and it powers your dashboards and detection rules. The rest sits in external stores, including object storage across AWS, Google Cloud Platform (GCP), and Azure. It also lives in data lakes, warehouses, and databases. This includes CloudTrail exports, Amazon Security Lake data, historical logs tiered to object storage, partner data feeds arriving as daily CSVs, and compliance archives mandated to live in object storage for seven years.

Today, querying that data means standing up a second query engine, such as Athena, Trino, Spark, or BigQuery. The result is two parallel systems running side by side, each with its own language, permission model, and operational overhead. You also end up reconciling results across two engines by hand, which creates a fragmented and disconnected experience. When a security investigation needs a longer lookback beyond what's indexed, your analyst leaves Kibana, opens another console, writes different syntax, and manually correlates results. When a new data feed arrives, your engineer builds an entire ingest pipeline before anyone evaluates the first row.

That fragmentation compounds with pipelines you have to maintain, and copies that drift from the source of truth. There’s also the constant context switching between where your teams already work and where the data actually lives.

For teams building agentic AI and retrieval augmented generation (RAG) pipelines, the problem compounds further. Enterprise context is distributed across object storage, indexed data, and live event streams, and querying this distributed context has required separate tools until now.

The solution: Query all your data, wherever it lives

ES|QL Data Federation extends ES|QL to query data in external sources, starting with Amazon S3 in technical preview. Your data stays where it is, and Elasticsearch queries reach it directly with the same ES|QL syntax and familiar processing commands (WHERE, STATS, EVAL, SORT). Kibana Discover and Dashboards integration also works the same way:

FROM cloudtrail_parquet
| WHERE eventName == "AssumeRole"
| STATS event_count = COUNT(*) BY awsRegion
| SORT event_count DESC
| LIMIT 20

That query runs against Parquet files in S3, without the need to copy data or build a pipeline. It also entirely avoids indexing. The same analyst who writes detection rules on indexed data can now reach into the archive without leaving their workflow.

ES|QL Data Federation is part of a broader direction for Elasticsearch: one engine that runs full-text search, vector retrieval, and analytical queries on indexed data, now extending ES|QL queries to data beyond the cluster. For teams building AI systems, that matters in practice. An agent assembling context can draw on indexed documents and archived Parquet files in S3 through the same ES|QL interface, instead of building a separate retrieval pipeline for each data source.

How ES|QL Data Federation achieves competitive query performance

Performance on external data determines whether the feature gets used, so we engineered for it from day one. That performance comes from a deep pushdown architecture running natively inside Elasticsearch, in the same cluster as full-text search, vector search, security detection, and observability. 

How the pushdown architecture skips data before reading it

Performance comes from not reading what you don't need. We push work down as close to the storage layer as possible:

  • Predicate pushdown: Row-group statistics, page-level column index, bloom filters, dictionary filtering.

  • Column projection: Only requested columns are read from storage.

  • Aggregate pushdown: COUNT/MIN/MAX resolved from Parquet metadata without reading rows.

  • TopN pushdown: SORT + LIMIT pushed into the reader (3.6–4.3x faster than previous approaches).

  • Late materialization: Filter first, fetch remaining columns only for surviving rows (2.5x on wide queries).

  • SIMD string matching: Dictionary-aware evaluation against encoded columns, skipping decode entirely.

Performance optimizations that benefit other ES|QL queries

Several optimizations built for external data now benefit ES|QL queries across Elasticsearch, including SIMD CONTAINS/LIKE fast paths (40–115x faster string filtering than previous approaches), constant-division JIT (1.4–4x on arithmetic), adaptive hash-agg emit for high-cardinality GROUP BY, and Panama-FFI zstd replacing zstd-jni across all of Elasticsearch. These shipped in the same time frame and are live today in Elastic Cloud Serverless, and in Elasticsearch 9.5 and later on Elastic Cloud Hosted and Elastic Self-Managed.

We benchmarked multiple reader implementations to find our performance ceiling and then invested in closing the gap at the compute layer where it benefits everyone.

Federated query use cases: Security, compliance, data exploration, and AI agents

Every query can draw on all your data (whether indexed, archived, or external), so results reflect the full picture, not just what was ingested. There are no gaps from archiving decisions or blind spots from storage silos.

Security: Historical lookback without tool switching

A security team indexes 30–90 days of hot data in Elasticsearch and archives the rest to object storage. When an incident requires a longer lookback, analysts today switch to a separate query engine and write different queries. They also manually reconcile results. With ES|QL Data Federation, the analyst queries the archive directly for ad hoc investigation, in the same Kibana session and with the same ES|QL syntax.

Compliance: Query archived records in place

Compliance archives are often mandated to live in object storage for years. Audits today require re-ingesting those records or spinning up a separate query service. ES|QL lets compliance teams query archived records where they live, without re-ingesting the data or introducing a second tool.

Data exploration: Assess before you ingest

A new partner data feed arrives as daily CSV exports, and building an ingest pipeline before evaluating the data quality slows teams down. With ES|QL Data Federation, engineers can point at the data and start exploring right away. Schema inference detects the column types, so you can validate the data quality and then decide whether to bring that data into Elasticsearch for recurring use.

Migration bridge: Legacy SIEMs to Elastic

Enterprises migrating from legacy security information and event management systems (SIEMs) carry years of historical data that would otherwise hold up the cutover. With ES|QL Data Federation, historical archives are immediately queryable. Migration can prioritize live data, while archived evidence stays accessible from day one.

Agentic context: Broader data, better answers

AI agents and RAG pipelines need broad historical context to reason well, but some of that context sits in external sources, invisible to the agent. With ES|QL Data Federation, agents query indexed and archived data through the same ES|QL interface. You get broader context and better answers because you're not building separate retrieval pipelines for each data source.

How to get started with ES|QL Data Federation

  • Start with Elastic Cloud Serverless: ES|QL Data Federation is available now as a technical preview in Elastic Cloud Serverless, and is expected to be available for Elastic Cloud Hosted and self-managed deployments in Elasticsearch 9.6 in early December. Start a free Elastic Cloud trial and create a new project, or upgrade your existing Elastic Cloud Hosted or Elastic Self-Managed cluster to 9.6 when available.

  • Register a data_source: Point at your S3 bucket with credentials.

  • Create a dataset: Define the resource path and partition settings.

  • Query from Kibana: Open Discover or Dev Tools, and run FROM your_dataset | LIMIT 5. If you see rows, you're in.

For the full setup walkthrough, including a public sample dataset you can query with no credentials or bucket of your own, read the companion post: How to query S3 from Elasticsearch with ES|QL Data Federation.

ES|QL Data Federation roadmap: GCS, Azure Blob Storage, data warehouses, and databases

The goal is to query all your data, wherever it lives. Beyond S3, our roadmap includes:

  • Additional cloud storage providers: Multicloud from the same API.

  • Data lake catalog integration: Query catalog-managed tables, not just file paths.

  • Data warehouses and databases: Extend the same query model to Redshift, Snowflake, PostgreSQL, and more.

  • Additional file formats: Covering the remaining major columnar and row formats.

  • Caching and acceleration: Smart caching for repeated access patterns.

  • Materialized views: Automatically index high-value external data for real-time performance when workloads demand it.

Technical preview feedback directly shapes general availability (GA) scope and defaults. Try it for yourself. Break it, and tell us what matters.

Learn more

Ready to query all your data from Elasticsearch? Start a free Elastic Cloud trial, create an Elasticsearch 9.6 deployment, and point ES|QL at your data in Amazon S3. 

Statements regarding future features, timelines, and commercial availability are forward-looking and subject to change. ES|QL Data Federation is in technical preview: APIs, syntax, performance characteristics, and subscription packaging may change before general availability. Not recommended for production-critical workloads without evaluation of risk and Elastic guidance.

Frequently Asked Questions

Can I query S3 data directly from Elasticsearch without ingesting it first?

Yes. ES|QL Data Federation queries Parquet, NDJSON, and CSV/TSV files in Amazon S3 directly using the same FROM syntax you use for Elasticsearch indices. There's no extract, transform, load (ETL) pipeline or data copy. There’s also no schema mapping to write.

How is querying with ES|QL Data Federation different from using Athena or Trino?

Athena and Trino are separate engines with their own query language, permission model, and operational surface. ES|QL Data Federation runs natively inside Elasticsearch, using a pushdown architecture built for external data, and the results land in the same Kibana that your teams already use.

Where is ES|QL Data Federation available?

ES|QL Data Federation is available now as a technical preview in Elastic Cloud Serverless. Elasticsearch 9.6 is expected to be available for Elastic Cloud Hosted and self-managed deployments in early December. Amazon S3 is the first supported source, with Google Cloud Storage, Azure Blob Storage, and databases planned for the future.

How much does ES|QL Data Federation cost during technical preview?

There's no additional charge while ES|QL Data Federation is in technical preview. It requires an Enterprise subscription on Elastic Cloud Hosted and Elastic Self-Managed. Charging begins at general availability and is based on usage, measured in Federated Query Seconds. Customers using it in technical preview will get advance notice and pricing details before any charges begin. As with any engine that reads from your buckets, storage API requests and any cross-region data transfer are billed by your cloud provider.

Which file formats and cloud providers does ES|QL Data Federation support today?

At technical preview, ES|QL Data Federation supports Amazon S3 with Parquet, NDJSON, and CSV/TSV files, plus gzip, zstd, and snappy compression. Google Cloud Storage, Azure Blob Storage, and support for data warehouses, like Snowflake and Redshift, are on the roadmap.

How helpful was this content?

Related Content

Kibana custom panels: Any dashboard visual, generated from one prompt

Kibana custom panels: Any dashboard visual, generated from one prompt

Teresa Alvarez Soler
How to query Amazon S3 from Elasticsearch with ES|QL, no ingest required

How to query Amazon S3 from Elasticsearch with ES|QL, no ingest required

Tyler Perkins
Elasticsearch 9.6: Query Amazon S3 data in place, multiuser chat, and PDFs to Markdown

Elasticsearch 9.6: Query Amazon S3 data in place, multiuser chat, and PDFs to Markdown

Gregory Chase
The fastest work is the work you never do: 100x faster sorted queries in Elasticsearch

The fastest work is the work you never do: 100x faster sorted queries in Elasticsearch

Attila Sahi
The best LLM writes correct Elasticsearch ES|QL 59% of the time. Here's what breaks the other 41%.

The best LLM writes correct Elasticsearch ES|QL 59% of the time. Here's what breaks the other 41%.

Jeffrey Rengifo

Ready to build state of the art search experiences?

Sufficiently advanced search isn’t achieved with the efforts of one. Elasticsearch is powered by data scientists, ML ops, engineers, and many more who are just as passionate about search as you are. Let’s connect and work together to build the magical search experience that will get you the results you want.