aws logs describe-queries
Returns a list of CloudWatch Logs Insights queries that are scheduled, running, or have been run recently in this account. AWS CLI reference
5 options Its page in the AWS CLI reference
Options
--log-group-nameLimits the returned queries to only those for the specified log group.--max-resultsLimits the number of returned queries to the specified number.--next-tokenThe token for the next set of items to return.--query-languageLimits the returned queries to only the queries that use the specified query language.--statusLimits the returned queries to only those that have the specified status.