简体   繁体   中英

Is it possible to see a history of interaction with tables in a Redshift schema?

Ultimately, I would like to obtain a list of tables in a particular schema that haven't been queried in the last two weeks (say).

I know that there are many system tables that track various things about how the Redshift cluster is functioning, but I have yet to find one that I could use to obtain the above.

Is what I want to do possible?

If you have enabled audit logging for the cluster, activity data stored inside a S3 bucket which you configured while enabling logging.

According to AWS Documentation , audit log bucket structure is as follows.

AWSLogs/AccountID/ServiceName/Region/Year/Month/Day/AccountID_ServiceName_Region_ClusterName_LogType_Timestamp.gz

For example: AWSLogs/123456789012/redshift/us-east-1/2013/10/29/123456789012_redshift_us-east-1_mycluster_userlog_2013-10-29T18:01.gz

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM