aws logs start-query
Starts a query of one or more log groups or data sources using CloudWatch Logs Insights. AWS CLI reference
8 options Its page in the AWS CLI reference
Options
--end-timeThe end of the time range to query.--limitThe maximum number of log events to return from the query.--log-group-identifiersThe list of log groups to query.--log-group-nameThe log group on which to perform the query.--log-group-namesThe list of log groups to be queried.--query-languageSpecify the query language to use for this query.--query-stringThe query string to use.--start-timeThe beginning of the time range to query.