41

In AWS console, I can search for a string in all log streams of a log group? Right now, I have to go inside each log stream and then do search which takes a lot of time, if I want to search across the log streams.

1

2 Answers 2

56

Once you click the log group in the CloudWatch Logs console, but before you click into an individual log stream, there is a button at the top right of the page labeled "Search Log Group". Click that, and it will take you to a page where you can search across all logs in the log group in a given time frame.

enter image description here

1
  • Is there a way to limit this result to log streams that match a particular pattern? Commented Oct 20, 2023 at 17:26
14

What you need is the CloudWacth Log Insight.

It cost some money to do data scanning this way though

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.