Schedules a query of a log group using CloudWatch Logs Insights. You specify the log group and time range to query and the query string to use.
For more information, see CloudWatch Logs Insights Query Syntax.
Queries time out after 15 minutes of execution. If your queries are timing out, reduce the time range being searched or partition your query into a number of queries.
Use a bare-bones client and the command you need to make an API call.
import { CloudWatchLogsClient, StartQueryCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import // const { CloudWatchLogsClient, StartQueryCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import const client = new CloudWatchLogsClient(config); const command = new StartQueryCommand(input); const response = await client.send(command);
StartQueryCommandInput for command's input shape.
input
StartQueryCommandOutput for command's response shape.
response
config for CloudWatchLogsClient's config shape.
config
Schedules a query of a log group using CloudWatch Logs Insights. You specify the log group and time range to query and the query string to use.
For more information, see CloudWatch Logs Insights Query Syntax.
Queries time out after 15 minutes of execution. If your queries are timing out, reduce the time range being searched or partition your query into a number of queries.
Use a bare-bones client and the command you need to make an API call.
import { CloudWatchLogsClient, StartQueryCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import // const { CloudWatchLogsClient, StartQueryCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import const client = new CloudWatchLogsClient(config); const command = new StartQueryCommand(input); const response = await client.send(command);
StartQueryCommandInput for command's
input
shape.StartQueryCommandOutput for command's
response
shape.config for CloudWatchLogsClient's
config
shape.