How to Query Amazon S3 Data from Elasticsearch Without Ingesting It

· Original article ↗

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

Products

Related Articles