Returns information about log groups, including data sources that ingest into each log group. You can return all your log groups or filter the results by prefix. The results are ASCII-sorted by log group name.
If an account-level retention policy applies to a log group,
retentionInDays shows the retention period from that policy, and
retentionPolicyName shows the name of the policy.
CloudWatch Logs doesn't support IAM policies that control access to the
DescribeLogGroups action by using the
aws:ResourceTag/key-name condition key. Other CloudWatch Logs actions do support the use of the
aws:ResourceTag/key-name condition key to control access. For more information about using tags to control access, see
Controlling access to Amazon Web Services resources using tags.
If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and view data from the linked source accounts. For more information, see
CloudWatch cross-account observability.
This cmdlet automatically pages all available results to the pipeline - parameters related to iteration are only needed if you want to manually control the paginated output. To disable autopagination, use -NoAutoIteration.
Note: For scripts written against earlier versions of this module this cmdlet can also be invoked with the alias,
Get-CWLLogGroups.