Ad space (banner)
AD

Got the fundamentals? A structured AWS course is a fast way to level up.

Find AWS courses on Udemy

Affiliate link. Costs you nothing extra.

☁️AWS Lessons
Lesson 40 / 41

Listing Log Groups with aws logs describe-log-groups

When you want to see where logs are being collected, use aws logs describe-log-groups. It lists the CloudWatch log groups.

The syntax is aws logs describe-log-groups. A prefix filters the results.

Running it returns each group's name, creation time, retention setting and stored size.

A common stumble is finding groups with no retention policy at all, holding years of logs nobody will read.

In real work, it is the starting point for investigating an incident — and for the periodic cleanup that keeps costs sane.

AWS
Try it (type this into the pseudo terminal)
aws logs describe-log-groups

🧑‍💻 You can type this command into the AWS pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)