Querying Amazon Web Service logs - Amazon Athena
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Querying Amazon Web Service logs

This section includes several procedures for using Amazon Athena to query popular datasets, such as Amazon CloudTrail logs, Amazon CloudFront logs, Classic Load Balancer logs, Application Load Balancer logs, Amazon VPC flow logs, and Network Load Balancer logs.

The tasks in this section use the Athena console, but you can also use other tools like the Athena JDBC driver, the Amazon CLI, or the Amazon Athena API Reference.

For information about using Amazon CloudFormation to automatically create Amazon Web Service log tables, partitions, and example queries in Athena, see Automating Amazon Web Service logs table creation and querying them with Amazon Athena in the Amazon Big Data Blog. For information about using a Python library for Amazon Glue to create a common framework for processing Amazon Web Service logs and querying them in Athena, see Easily query Amazon Web Service logs using Amazon Athena.

The topics in this section assume that you have configured appropriate permissions to access Athena and the Amazon S3 bucket where the data to query should reside. For more information, see Setting up and Getting started.

For information about querying Amazon S3 logs, see the following topics: