aws logs get-query-results
Returns the results from the specified query. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--max-itemsThe maximum number of log events to return in the response.--next-tokenThe token for the next set of items to return.--query-idThe ID number of the query.