View a markdown version of this page

Understanding the Amazon S3 Storage Lens for Tables export schemas - Amazon Simple Storage Service

Understanding the Amazon S3 Storage Lens for Tables export schemas

Amazon S3 Storage Lens for Tables delivers two reports per day to your general purpose bucket: a metrics report and a maintenance events report. Each report has its own schema, described in the following sections. The schema differs from Amazon S3 Storage Lens for general purpose buckets: the records are keyed to table buckets, namespaces, and tables, and the record_type values reflect the table hierarchy.

Metrics report schema

The metrics report applies to the general, storage, table property, activity, and error metrics. It has the following columns:

Column name Type Description
version_number string The version of the schema.
configuration_id string Amazon S3 Storage Lens for Tables configuration name.
report_date string Date the report refers to.
aws_account_number string Account ID the entry refers to.
aws_region string Region.
storage_class string Storage class.
int_access_tier string The S3 Intelligent-Tiering access tier that the row applies to. This value is empty for rows that aren't specific to an Intelligent-Tiering tier.
record_type string Level of aggregation of the data. Values: ACCOUNT, BUCKET, NAMESPACE, TABLE, PARTITION.
record_value string Disambiguator for record types that have more than one record under them.
table_bucket_name string Table bucket name.
table_namespace string Table namespace.
table_name string Table name.
metric_name string The name of the metric that is being reported.
metric_value string The value of the metric that is being reported.

Maintenance events report schema

The maintenance events report contains compaction and snapshot events, identified by the event_type values COMPACTION and SNAPSHOT. It has the following columns:

Column name Type Description
version_number string The version of the schema.
configuration_id string Amazon S3 Storage Lens for Tables configuration name.
report_date string Date the report refers to.
aws_account_number string Account ID the entry refers to.
aws_region string Region.
storage_class string Storage class.
table_bucket_name string Table bucket name.
table_namespace string Table namespace.
table_name string Table name.
event_type string Type of maintenance event. Values: COMPACTION, SNAPSHOT.
event string The event details, as a JSON string.

Export schemas for Amazon S3 Tables

When you send metrics exports to an AWS-managed S3 table bucket, Amazon S3 Storage Lens for Tables writes the metrics as Apache Iceberg system tables in the s3tablescatalog catalog, in the aws-s3 table bucket (s3tablescatalog/aws-s3), under the namespace s3tables_lens_configuration-id_exp. The metrics are organized into the storage_metrics, table_properties, activity_metrics, table_health_metrics, and events system tables.

For the full column schema – the column name, data type, and description of each column in every system table – see Amazon S3 Storage Lens for Tables export column schemas.