View source: R/cloudwatchlogs_operations.R
| cloudwatchlogs_create_scheduled_query | R Documentation |
Creates a scheduled query that runs CloudWatch Logs Insights queries at regular intervals. Scheduled queries enable proactive monitoring by automatically executing queries to detect patterns and anomalies in your log data. Query results can be delivered to Amazon S3 for analysis or further processing.
See https://www.paws-r-sdk.com/docs/cloudwatchlogs_create_scheduled_query/ for full documentation.
cloudwatchlogs_create_scheduled_query(
name,
description = NULL,
queryLanguage,
queryString,
logGroupIdentifiers = NULL,
scheduleExpression,
timezone = NULL,
startTimeOffset = NULL,
endTimeOffset = NULL,
destinationConfiguration = NULL,
scheduleStartTime = NULL,
scheduleEndTime = NULL,
executionRoleArn,
state = NULL,
tags = NULL
)
name |
[required] The name of the scheduled query. The name must be unique within your account and region. Length must be between 1 and 300 characters. |
description |
An optional description for the scheduled query to help identify its purpose and functionality. |
queryLanguage |
[required] The query language to use for the scheduled query. Valid values are |
queryString |
[required] The query string to execute. This is the same query syntax used in CloudWatch Logs Insights. Maximum length is 10,000 characters. |
logGroupIdentifiers |
An array of log group names or ARNs to query. You can specify between 1 and 50 log groups. Log groups can be identified by name or full ARN. |
scheduleExpression |
[required] A cron expression that defines when the scheduled query runs. The expression uses standard cron syntax and supports minute-level precision. Maximum length is 256 characters. |
timezone |
The timezone for evaluating the schedule expression. This determines when the scheduled query executes relative to the specified timezone. |
startTimeOffset |
The time offset in seconds that defines the lookback period for the query. This determines how far back in time the query searches from the execution time. |
endTimeOffset |
The time offset in seconds that defines the end of the lookback period for the query. Together with |
destinationConfiguration |
Configuration for where to deliver query results. Supports Amazon S3 destinations for storing query output and lookup table destinations for automatically refreshing lookup tables with query results. You can configure one or both destination types. |
scheduleStartTime |
The start time for the scheduled query in Unix epoch format. The query will not execute before this time. |
scheduleEndTime |
The end time for the scheduled query in Unix epoch format. The query will stop executing after this time. |
executionRoleArn |
[required] The ARN of the IAM role that grants permissions to execute the query and deliver results to the specified destination. The role must have permissions to read from the specified log groups and write to the destination. |
state |
The initial state of the scheduled query. Valid values are |
tags |
Key-value pairs to associate with the scheduled query for resource management and cost allocation. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.