Returns a list of CloudWatch Logs Insights queries that are scheduled, running, or have been run recently in this account¶
Description¶
Returns a list of CloudWatch Logs Insights queries that are scheduled, running, or have been run recently in this account. You can request all queries or limit it to queries of a specific log group or queries with a certain status.
This operation includes both interactive queries started directly by users and automated queries executed by scheduled query configurations. Scheduled query executions appear in the results alongside manually initiated queries, providing visibility into all query activity in your account.
Usage¶
Arguments¶
-
logGroupNameLimits the returned queries to only those for the specified log group.
-
statusLimits the returned queries to only those that have the specified status. Valid values are
Cancelled,Complete,Failed,Running, andScheduled. -
maxResultsLimits the number of returned queries to the specified number.
-
nextTokenThe token for the next set of items to return. The token expires after 24 hours.
-
queryLanguageLimits the returned queries to only the queries that use the specified query language.
Value¶
A list with the following syntax:
list(
queries = list(
list(
queryLanguage = "CWLI"|"SQL"|"PPL",
queryId = "string",
queryString = "string",
status = "Scheduled"|"Running"|"Complete"|"Failed"|"Cancelled"|"Timeout"|"Unknown",
createTime = 123,
logGroupName = "string",
queryDuration = 123,
bytesScanned = 123.0,
userIdentity = "string"
)
),
nextToken = "string"
)