Skip to main content

log_groups_for_queries

Creates, updates, deletes, gets or lists a log_groups_for_queries resource.

Overview

Namelog_groups_for_queries
TypeResource
Idaws.logs.log_groups_for_queries

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
log_group_identifierstringAn array of the names and ARNs of the log groups that were processed in the query.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_log_groups_for_queryselectregionReturns a list of the log groups that were analyzed during a single CloudWatch Logs Insights query. This can be useful for queries that use log group name prefixes or the filterIndex command, because the log groups are dynamically selected in these cases. For more information about field indexes, see Create field indexes to improve query performance and reduce costs.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a list of the log groups that were analyzed during a single CloudWatch Logs Insights query. This can be useful for queries that use log group name prefixes or the filterIndex command, because the log groups are dynamically selected in these cases. For more information about field indexes, see Create field indexes to improve query performance and reduce costs.

SELECT
log_group_identifier
FROM aws.logs.log_groups_for_queries
WHERE region = '{{ region }}' -- required
;