View a markdown version of this page

Amazon OpenSearch Service system tables schema and example queries - Amazon OpenSearch Service

Amazon OpenSearch Service system tables schema and example queries

Table schemas

domains

Full name: "s3tablescatalog/aws-catalog"."opensearch"."domains". Partitioned by bucket(32, id).

The domains system table contains one row for each domain in your account and Region.

The following table describes the columns of the domains table.

Column Type Required Description
idstringYesUnique identifier of the asset.
ingestion_timetimestamptzYesTime this asset record was ingested into the system table, in UTC.
update_timetimestamptzNoTime the asset was last updated in the AWS Glue Data Catalog, in UTC.
schema_versionstringYesIdentifier of this system table's column layout. Changes when a column is added, removed, renamed, or retyped.
created_timetimestamptzNoTime the resource was created, in UTC.
namestringNoThe user-provided business name for the asset.
descriptionstringNoThe user-provided business description for the asset.
resource_namestringYesThe resource's technical name.
resource_descriptionstringNoThe resource's technical description.
application_logs_enabled_enumstringNoWhether the log type is published. Values: Enabled, Disabled.
application_logs_log_group_arnstringNoThe ARN of the CloudWatch Logs log group that the logs are published to.
audit_logs_enabled_enumstringNoWhether the log type is published. Values: Enabled, Disabled.
audit_logs_log_group_arnstringNoThe ARN of the CloudWatch Logs log group that the logs are published to.
auto_software_update_enumstringNoWhether automatic service software updates are enabled. Values: Enabled, Disabled.
auto_tune_state_enumstringNoThe current state of Auto-Tune on the domain. Values: Enabled, Disabled, EnableInProgress, DisableInProgress, DisabledAndRollbackScheduled, DisabledAndRollbackInProgress, DisabledAndRollbackComplete, DisabledAndRollbackError, Error.
auto_tune_use_off_peak_window_enumstringNoWhether Auto-Tune deploys changes during the off-peak window. Values: Enabled, Disabled.
availability_zone_countintNoThe number of Availability Zones the domain uses. 1 when zone awareness is disabled.
cluster_manager_enabled_enumstringNoWhether dedicated cluster manager nodes are enabled. Values: Enabled, Disabled.
cluster_manager_instance_countintNoThe number of dedicated cluster manager nodes. Present only when dedicated cluster manager nodes are enabled.
cluster_manager_instance_typestringNoThe instance type of the dedicated cluster manager nodes. Present only when dedicated cluster manager nodes are enabled.
cognito_authentication_enumstringNoWhether Amazon Cognito authentication for OpenSearch Dashboards is enabled. Values: Enabled, Disabled.
cold_storage_enumstringNoWhether cold storage is enabled. Values: Enabled, Disabled.
coordinator_node_enabled_enumstringNoWhether coordinator nodes are enabled. Values: Enabled, Disabled.
coordinator_node_instance_countintNoThe number of coordinator nodes.
coordinator_node_instance_typestringNoThe instance type of the coordinator nodes.
custom_endpointstringNoThe fully qualified domain name of the custom endpoint. Present only when a custom endpoint is enabled.
custom_endpoint_certificate_arnstringNoThe ARN of the AWS Certificate Manager certificate for the custom endpoint. Present only when a custom endpoint is enabled.
custom_endpoint_enabled_enumstringNoWhether a custom endpoint is enabled for the domain. Values: Enabled, Disabled.
deployment_strategy_enumstringNoThe deployment strategy that the domain uses for configuration changes. Values: Default, CapacityOptimized.
domain_idstringYesThe unique identifier of the domain, in the form account-id/domain-name.
ebs_enabled_enumstringNoWhether EBS volumes are attached to the data nodes. Values: Enabled, Disabled.
ebs_iopsintNoThe baseline IOPS of each EBS volume. Present only for gp3 and io1 volumes.
ebs_throughput_in_mebibytes_per_secondintNoThe throughput of each EBS volume, in mebibytes per second. Present only for gp3 volumes.
ebs_volume_size_in_gibibytesintNoThe size of each EBS volume, in gibibytes.
ebs_volume_typestringNoThe EBS volume type, for example gp3.
encryption_at_rest_enumstringNoWhether encryption of data at rest is enabled. Values: Enabled, Disabled.
endpointstringNoThe public endpoint used to submit index, search, and data upload requests to the domain. Present only for domains with public network access.
endpoint_v2stringNoThe dual-stack public endpoint of the domain. Present only for public domains with dual-stack IP addresses.
enforce_https_enumstringNoWhether the domain requires that all traffic arrives over HTTPS. Values: Enabled, Disabled.
engine_enumstringNoThe search engine that the domain runs. Values: OpenSearch, Elasticsearch.
engine_mode_enumstringNoThe engine mode of the domain. Values: General, Optimized.
engine_versionstringNoThe engine version that the domain runs, in the form OpenSearch_X.Y or Elasticsearch_X.Y.
fine_grained_access_control_enumstringNoWhether fine-grained access control is enabled. Values: Enabled, Disabled.
iam_federation_enumstringNoWhether IAM identity federation is enabled. Values: Enabled, Disabled.
identity_center_api_access_enumstringNoWhether IAM Identity Center API access is enabled. Values: Enabled, Disabled.
identity_center_application_arnstringNoThe ARN of the IAM Identity Center application integrated with the domain.
identity_center_instance_arnstringNoThe ARN of the IAM Identity Center instance integrated with the domain.
index_slow_logs_enabled_enumstringNoWhether the log type is published. Values: Enabled, Disabled.
index_slow_logs_log_group_arnstringNoThe ARN of the CloudWatch Logs log group that the logs are published to.
instance_countintNoThe number of data nodes.
instance_typestringNoThe instance type of the data nodes.
internal_user_database_enumstringNoWhether the fine-grained access control internal user database is enabled. Values: Enabled, Disabled.
ip_address_type_enumstringNoThe type of IP addresses that the domain endpoints support. Values: Ipv4, Dualstack.
jwt_authentication_enumstringNoWhether JWT authentication is enabled. Values: Enabled, Disabled.
kms_key_arnstringNoThe ARN of the AWS KMS key used to encrypt data at rest. Present only when encryption at rest is enabled. Deprecated: use kms_key_id.
multi_az_with_standby_enumstringNoWhether the domain is deployed across multiple Availability Zones with a standby zone. Values: Enabled, Disabled.
natural_language_query_generation_enumstringNoWhether natural language query generation is enabled. Values: Enabled, Disabled.
network_access_enumstringNoWhether the domain is reachable from the public internet or only from within a VPC. Values: Public, Vpc.
node_to_node_encryption_enabled_enumstringNoWhether node-to-node encryption is enabled. Values: Enabled, Disabled.
off_peak_window_enabled_enumstringNoWhether the off-peak window is enabled. Values: Enabled, Disabled.
off_peak_window_start_hour_utcintNoThe hour, in UTC, at which the off-peak window starts.
off_peak_window_start_minute_utcintNoThe minute, in UTC, at which the off-peak window starts.
s3_vectors_engine_enumstringNoWhether the S3 vectors engine is enabled. Values: Enabled, Disabled.
saml_authentication_enumstringNoWhether SAML authentication for OpenSearch Dashboards is enabled. Values: Enabled, Disabled.
search_slow_logs_enabled_enumstringNoWhether the log type is published. Values: Enabled, Disabled.
search_slow_logs_log_group_arnstringNoThe ARN of the CloudWatch Logs log group that the logs are published to.
serverless_vector_acceleration_enumstringNoWhether serverless vector acceleration is enabled. Values: Enabled, Disabled.
service_software_versionstringNoThe service software version that the domain runs.
status_enumstringNoThe current lifecycle status of the domain. Values: Creating, Active, Modifying, UpgradingEngineVersion, UpdatingServiceSoftware, Isolated.
tls_security_policystringNoThe TLS security policy applied to the HTTPS endpoint of the domain.
use_case_enumstringNoThe primary use case of the domain. Values: Search, Vector, Observability, Mixed.
use_latest_service_software_for_blue_green_enumstringNoWhether blue/green deployments use the latest available service software. Values: Enabled, Disabled.
vpc_endpointstringNoThe VPC endpoint used to submit index, search, and data upload requests to the domain. Present only for domains with VPC network access.
vpc_endpoint_v2stringNoThe dual-stack VPC endpoint of the domain. Present only for VPC domains with dual-stack IP addresses.
warm_instance_countintNoThe number of UltraWarm nodes. Present only when UltraWarm storage is enabled.
warm_instance_typestringNoThe instance type of the UltraWarm nodes. Present only when UltraWarm storage is enabled.
warm_storage_enumstringNoWhether UltraWarm storage is enabled. Values: Enabled, Disabled.
zone_awareness_enumstringNoWhether the domain spreads its nodes across multiple Availability Zones. Values: Enabled, Disabled.
kms_key_idstringNoThe identifier of the AWS KMS key that encrypts the resource at rest, as the source service reports it: a key ID, key ARN, alias name or alias ARN.

collections

Full name: "s3tablescatalog/aws-catalog"."opensearch"."collections". Partitioned by bucket(32, id).

The collections system table contains one row for each Serverless collection in your account and Region.

The following table describes the columns of the collections table.

Column Type Required Description
idstringYesUnique identifier of the asset.
ingestion_timetimestamptzYesTime this asset record was ingested into the system table, in UTC.
update_timetimestamptzNoTime the asset was last updated in the AWS Glue Data Catalog, in UTC.
schema_versionstringYesIdentifier of this system table's column layout. Changes when a column is added, removed, renamed, or retyped.
created_timetimestamptzNoTime the resource was created, in UTC.
namestringNoThe user-provided business name for the asset.
descriptionstringNoThe user-provided business description for the asset.
resource_namestringYesThe resource's technical name.
resource_descriptionstringNoThe resource's technical description.
collection_endpointstringNoThe HTTPS endpoint used to submit search and index requests to the collection.
collection_group_namestringNoThe name of the collection group that contains this collection. Populated only for collections that belong to a collection group.
collection_idstringYesThe unique identifier of the OpenSearch Serverless collection.
collection_type_enumstringNoThe collection type, which determines the supported workload and query capabilities. Values: SEARCH, VECTORSEARCH, TIMESERIES.
deletion_protection_enumstringNoWhether deletion protection is enabled for the collection. Values: ENABLED, DISABLED.
fips_collection_endpointstringNoThe FIPS 140-3 compliant HTTPS endpoint used to submit search and index requests to the collection. Populated only for collections that expose a FIPS endpoint.
generation_enumstringNoThe generation of the collection. Values: CLASSIC, NEXTGEN.
kms_key_arnstringNoThe ARN of the AWS KMS key used to encrypt the collection. Deprecated: use kms_key_id.
serverless_vector_acceleration_enumstringNoWhether serverless vector acceleration is enabled for the collection. Values: ENABLED, DISABLED, ALLOWED.
standby_replicas_enumstringNoWhether the collection is deployed with redundant standby replicas for high availability. Values: ENABLED, DISABLED.
status_enumstringNoThe current lifecycle status of the collection. Values: CREATING, UPDATING, DELETING, ACTIVE, FAILED, UPDATE_FAILED.
kms_key_idstringNoThe identifier of the AWS KMS key that encrypts the resource at rest, as the source service reports it: a key ID, key ARN, alias name or alias ARN.

indexes

Full name: "s3tablescatalog/aws-catalog"."opensearch"."indexes". Partitioned by bucket(32, id).

The indexes system table contains one row for each index in your account and Region.

The following table describes the columns of the indexes table.

Column Type Required Description
idstringYesUnique identifier of the asset.
ingestion_timetimestamptzYesTime this asset record was ingested into the system table, in UTC.
update_timetimestamptzNoTime the asset was last updated in the AWS Glue Data Catalog, in UTC.
schema_versionstringYesIdentifier of this system table's column layout. Changes when a column is added, removed, renamed, or retyped.
created_timetimestamptzNoTime the resource was created, in UTC.
namestringNoThe user-provided business name for the asset.
descriptionstringNoThe user-provided business description for the asset.
resource_namestringYesThe resource's technical name.
resource_descriptionstringNoThe resource's technical description.
belongs_tostringNoFully qualified identifier of the container asset this asset is a member of.
settingsmap<string,string>NoThe complete set of index setting key-value pairs as returned by GET /{index}. Keys use OpenSearch dotted format (for example, index.number_of_shards, index.refresh_interval).

Example queries

Domains by encryption at rest and audit logging

SELECT encryption_at_rest_enum, audit_logs_enabled_enum, count(*) AS domains FROM "s3tablescatalog/aws-catalog"."opensearch"."domains" GROUP BY 1, 2;

Collections by type and deletion protection

SELECT collection_type_enum, deletion_protection_enum, standby_replicas_enum, count(*) AS collections FROM "s3tablescatalog/aws-catalog"."opensearch"."collections" GROUP BY 1, 2, 3;