list_aggregate_log_group_summaries
¶
list_aggregate_log_group_summaries(
group_by: ListAggregateLogGroupSummariesGroupBy,
*,
config_overrides: Optional[CloudWatchLogsClientConfig] = 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/cloud_watch_logs.py
5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 | |