35

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.

hatellla
  • 4,796
  • 8
  • 49
  • 101
  • Similar problem, answer there might help you: https://stackoverflow.com/questions/57617203/how-do-i-filter-aws-cloud-watch-logs-on-a-hash-on-the-main-page/57625466#57625466 – Dejan Peretin Sep 28 '19 at 07:03

2 Answers2

51

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

codester
  • 117
  • 2
  • 9
Mark B
  • 183,023
  • 24
  • 297
  • 295
12

What you need is the CloudWacth Log Insight.

It cost some money to do data scanning this way though

enter image description here

qkhanhpro
  • 4,371
  • 2
  • 33
  • 45