list_aggregate_log_group_summaries
async
¶
list_aggregate_log_group_summaries(
group_by: ListAggregateLogGroupSummariesGroupBy,
*,
config_overrides: Optional[AsyncCloudWatchLogsClientConfig] = None,
account_identifiers: Optional[AccountIds] = None,
include_linked_accounts: Optional[IncludeLinkedAccounts] = None,
log_group_class: Optional[LogGroupClass] = None,
log_group_name_pattern: Optional[LogGroupNameRegexPattern] = None,
data_sources: Optional[DataSourceFilters] = None,
next_token: Optional[NextToken] = None,
limit: Optional[ListLogGroupsRequestLimit] = None,
) -> ListAggregateLogGroupSummariesResponse
Returns an aggregate summary of all log groups in the Region grouped by specified data source characteristics. Supports optional filtering by log group class, name patterns, and data sources. If you perform this action in a monitoring account, you can also return aggregated summaries of log groups from source accounts that are linked to the monitoring account. For more information about using cross-account observability to set up monitoring accounts and source accounts, see CloudWatch cross-account observability.
The operation aggregates log groups by data source name and type and optionally format, providing counts of log groups that share these characteristics. The operation paginates results. By default, it returns up to 50 results and includes a token to retrieve more results.
Parameters:
-
account_identifiers(Optional[AccountIds], default:None) –When
includeLinkedAccountsis set totrue, use this parameter to specify the list of accounts to search. You can specify as many as 20 account IDs in the array. -
include_linked_accounts(Optional[IncludeLinkedAccounts], default:None) –If you are using a monitoring account, set this to
trueto have the operation return log groups in the accounts listed inaccountIdentifiers.If this parameter is set to
trueandaccountIdentifierscontains a null value, the operation returns all log groups in the monitoring account and all log groups in all source accounts that are linked to the monitoring account.The default for this parameter is
false. -
log_group_class(Optional[LogGroupClass], default:None) –Filters the results by log group class to include only log groups of the specified class.
-
log_group_name_pattern(Optional[LogGroupNameRegexPattern], default:None) –Use this parameter to limit the returned log groups to only those with names that match the pattern that you specify. This parameter is a regular expression that can match prefixes and substrings, and supports wildcard matching and matching multiple patterns, as in the following examples.
-
Use
^to match log group names by prefix. -
For a substring match, specify the string to match. All matches are case sensitive
-
To match multiple patterns, separate them with a
|as in the example^/aws/lambda|discovery
You can specify as many as five different regular expression patterns in this field, each of which must be between 3 and 24 characters. You can include the
^symbol as many as five times, and include the|symbol as many as four times. -
-
data_sources(Optional[DataSourceFilters], default:None) –Filters the results by data source characteristics to include only log groups associated with the specified data sources.
-
group_by(ListAggregateLogGroupSummariesGroupBy) –Specifies how to group the log groups in the summary.
-
limit(Optional[ListLogGroupsRequestLimit], default:None) –The maximum number of aggregated summaries to return. If you omit this parameter, the default is up to 50 aggregated summaries.
Raises:
-
InvalidParameterException–A parameter is specified incorrectly.
-
ServiceUnavailableException–The service cannot complete the request.
-
ValidationException–One of the parameters for the request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudwatch_logs/_services/async_cloud_watch_logs.py
5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 | |