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
5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 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 | |