limit - Amazon CloudWatch Logs
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Use limit to specify the number of log events that you want your query to return.

For example, the following example returns only the 25 most recent log events

fields @timestamp, @message | sort @timestamp desc | limit 25