cloudwatch_describe_log_groups
Retrieve and filter CloudWatch log groups by name pattern in a specified AWS region, returning a JSON-formatted list of matching groups for efficient log management.
Instructions
Describes available CloudWatch log groups in the specified region.
Parameters:
aws_region (str): The AWS region - use 'us-east-1' if not specified.
log_group_name_pattern (str): The pattern to filter log group names.
Pattern: [\.\-_/#A-Za-z0-9]*
If you specify a string for this parameter, the operation returns only log groups that have names that match the string based on a case-sensitive substring search.
For example, if you specify Foo, log groups named FooBar, aws/Foo, and GroupFoo would match, but foo, F/o/o and Froo would not match.
Thus, if you don't find any results with uppercase letters, try using lowercase letters.
Returns:
str: JSON-formatted list of log groups.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
aws_region | Yes | ||
limit | No | ||
log_group_name_pattern | Yes |
Input Schema (JSON Schema)
{
"properties": {
"aws_region": {
"title": "Aws Region",
"type": "string"
},
"limit": {
"default": 50,
"title": "Limit",
"type": "integer"
},
"log_group_name_pattern": {
"title": "Log Group Name Pattern",
"type": "string"
}
},
"required": [
"aws_region",
"log_group_name_pattern"
],
"title": "cloudwatch_describe_log_groupsArguments",
"type": "object"
}