Amazon Athena query history report

0

Is there a way to export out Amazon Athena Query History?

profile pictureAWS
EXPERT
Anjan
asked 4 years ago1201 views
1 Answer
0
Accepted Answer

To retrieve and save query history programmatically:

  1. Use Athena ListQueryExecutions API action or the list-query-executions CLI command to retrieve the query IDs.
  2. Use the Athena GetQueryExecution API action or the get-query-execution CLI command to retrieve information about each query based on its ID.
  3. Use the Amazon S3 PutObject API action or the put-object CLI command to save the information in Amazon S3.

Please check Working with Query Results, Output Files, and Query History for more details.

answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions