Understand CloudTrail logs and Athena tables
Before you begin creating tables, you should understand a little more about CloudTrail and how it stores data. This can help you create the tables that you need, whether you create them from the CloudTrail console or from Athena.
CloudTrail saves logs as JSON text files in compressed gzip format
(*.json.gz
). The location of the log files depends on how you
set up trails, the Amazon Web Services Region or Regions in which you are logging, and other factors.
For more information about where logs are stored, the JSON structure, and the record file contents, see the following topics in the Amazon CloudTrail User Guide:
To collect logs and save them to Amazon S3, enable CloudTrail from the Amazon Web Services Management Console. For more information, see Creating a trail in the Amazon CloudTrail User Guide.