Is there a way to filter CloudWatch log streams by 'most recent' to oldest within the AWS console? I am having to scroll incredibly far down to get to my most recent log messages.
I have tried filtering by 30s - 5mins which works for now, I just thought there may be an easier way to list all of the log streams starting with most recent at the top instead of oldest.
Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/ . In the navigation pane, choose Log groups. Choose Actions, and then choose Create log group. Enter a name for the log group, and then choose Create log group.
Currently, CloudWatch Logs Insights doesn't support filtering logs with human readable timestamps. Use general functions in the fields and filter commands and as arguments for other functions. Use IP address string functions in the filter and fields commands and as arguments for other functions.
To run a CloudWatch Logs Insights sample queryIn the navigation pane, choose Logs, and then choose Logs Insights. On the Logs Insights page, the query editor contains a default query that returns the 20 most recent log events. In the Select log group(s) drop down, choose one or more log groups to query.
I had the same problem.
Just use CloudWatch Logs Insights.
You should have a sample query provided by Amazon, but the one below works perfectly.
fields @timestamp, @message
| sort @timestamp desc
| limit 200
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With