limit
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