How to Query Amazon S3 Data from Elasticsearch Without Ingesting It

Summary
Elastic’s ES|QL Data Federation lets users query Parquet, NDJSON and CSV files in S3 without ingesting them, including correlating archived CloudTrail with indexed alerts. It is in technical preview in Elastic Cloud Serverless.
Key points
- Register an S3 data source and dataset through Elasticsearch APIs; column types are inferred at query time.
- Supported launch formats include Parquet, NDJSON and CSV/TSV, with glob patterns and optional Hive partition detection.
- Timestamp filters and Hive partition predicates can limit which Parquet row groups or S3 files are scanned.
- ES|QL can combine S3 data with indexed firewall logs in one request using subqueries, multi-source FROM, LOOKUP JOIN or IN subqueries.
- The examples show correlating archived CloudTrail events with indexed alerts and enriching CloudTrail records with an asset registry.
- Data-source credentials are encrypted at rest and decrypted in memory at query time; the article recommends keyless or workload-identity federation where suitable.
- The feature is in technical preview in Elastic Cloud Serverless; the article says Elasticsearch 9.6 availability on Hosted and Self-Managed was planned for December.
Article Details
- Topic
- Querying Parquet, NDJSON, and CSV files in Amazon S3 from Elasticsearch with ES|QL Data Federation, without ingesting the data
Vendors
AmazonYou can query Parquet, NDJSON, and CSV files in Amazon S3 from Elasticsearch with the same FROM clause you use for an index. Two PUT requests register the bucket, and Elasticsearch infers the schema at query time.ElasticGet 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.
Products
Agent BuilderQuery Language (ES|QL) request, filter it with MATCH, and wrap it in a view or point Elastic Agent Builder at it.Amazon S3You can query Parquet, NDJSON, and CSV files in Amazon S3 from Elasticsearch with the same FROM clause you use for an index. Two PUT requests register the bucket, and Elasticsearch infers the schema at query time.ElasticsearchGet 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 FederationIn this post, we walk you through the process. For the announcement and the architecture behind the query performance, read ES|QL Data Federation: Elasticsearch now queries data where it lives.KibanaMap a timestamp field for Kibana’s time picker
