log_groups_for_queries
Creates, updates, deletes, gets or lists a log_groups_for_queries resource.
Overview
| Name | log_groups_for_queries |
| Type | Resource |
| Id | aws.logs.log_groups_for_queries |
Fields
The following fields are returned by SELECT queries:
- list_log_groups_for_query
| Name | Datatype | Description |
|---|---|---|
log_group_identifier | string | An 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_log_groups_for_query | select | region | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- list_log_groups_for_query
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
;