How to Export Amazon Security Lake Logs with Athena

· Original article ↗

Summary

A tutorial explains how to use Athena UNLOAD to export Amazon Security Lake data as JSON lines to S3, download it, and review it. It covers access requirements, partition filters, and common errors.

Key points

  • Amazon Security Lake stores events in Parquet using OCSF; the guide recommends querying them with Athena rather than downloading them directly.
  • Athena UNLOAD can export query results as JSON to an S3 prefix, which must be empty; the resulting files can be downloaded and combined into a JSONL file.
  • Query access requires SELECT on the tables through Lake Formation, Athena permissions, and write access to an S3 bucket.
  • Filtering by eventday and accountid limits the data scanned; the article notes Athena charges by data scanned.
  • The guide lists common fixes for missing tables, insufficient permissions, non-empty export prefixes, and compressed output.
  • The article suggests uploading the JSONL file to logtotal[.]com for sanitizing and review but provides no further detail on those steps.

Article Details

Topic
Exporting Amazon Security Lake logs with Athena UNLOAD and reviewing them in LogTotal

Vendors

Products

Related Articles