> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CloudWatch Logs Describe Log Groups

Lists the specified log groups. You can list all your log groups or filter the results by prefix. The results are ASCII-sorted by log group name.

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](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html).

<Note>
  External Documentation

  To learn more, visit the [AWS documentation](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeLogGroups.html).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter             | Description                                                                                                                                                                                                                                                               |
  | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | AWS Region(s)         | Enter the desired AWS Region(s).<br /><br />To execute the action in multiple regions, provide a comma-separated list.<br />For example: `us-east-1,eu-west-2`.<br /><br />If you wish to run the action in all available regions, use the asterisk symbol (`*`) instead. |
  | Log Group Name Prefix | The prefix to match.                                                                                                                                                                                                                                                      |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter                        | Description                                                                                             |
  | -------------------------------- | ------------------------------------------------------------------------------------------------------- |
  | Disable XML To JSON Auto Convert | When checked, XML responses are not automatically converted into JSON format.                           |
  | Limit                            | The maximum number of items returned.<br />If you don't specify a value, the default is up to 50 items. |
  | Next Token                       | The token for the next set of items to return. (You received this token from a previous call.)          |
</div>

## Example Output

```json theme={"dark"}
{
	"logGroups": [
		{
			"arn": "string",
			"creationTime": 0,
			"kmsKeyId": "string",
			"logGroupName": "[\\.\\-_/#A-Za-z0-9]+",
			"metricFilterCount": 0,
			"retentionInDays": 0,
			"storedBytes": 0
		}
	],
	"nextToken": "The token for the next set of items to return. The token expires after 24 hours."
}
```

## Workflow Library Example

[Cloudwatch Logs Describe Log Groups with Aws and Send Results Via Email](https://library.blinkops.com/workflows/cloudwatch-logs-describe-log-groups-with-aws-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/cloudwatch-logs-describe-log-groups-with-aws-and-send-results-via-email/canvas" />
</div>
