AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Get-CWLFilteredLogEvent-LogGroupName <String>-EndTime <Int64>-FilterPattern <String>-LogGroupIdentifier <String>-LogStreamNamePrefix <String>-LogStreamName <String[]>-StartTime <Int64>-Unmask <Boolean>-Interleaved <Boolean>-Limit <Int32>-NextToken <String>-Select <String>-PassThru <SwitchParameter>-ClientConfig <AmazonCloudWatchLogsConfig>
logs:FilterLogEvents
permission to perform this operation.
You can specify the log group to search by using either logGroupIdentifier
or logGroupName
. You must include one of these two parameters, but you can't include both.
By default, this operation returns as many log events as can fit in 1 MB (up to 10,000 log events) or all the events found within the specified time range. If the results include a token, that means there are more log events available. You can get additional results by specifying the token in a subsequent call. This operation can return empty results while there are more log events available through the token.
The returned log events are sorted by event timestamp, the timestamp when the event was ingested by CloudWatch Logs, and the ID of the PutLogEvents
request.
If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and view data from the linked source accounts. For more information, see CloudWatch cross-account observability. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Jan 1, 1970 00:00:00 UTC
. Events with a timestamp later than this time are not returned. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
logGroupIdentifier
or logGroupName
, but not both. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
logGroupIdentifier
or logGroupName
, but not both. Required? | False |
Position? | 1 |
Accept pipeline input? | True (ByValue, ByPropertyName) |
logStreamNamePrefix
and logStreamNames
, the action returns an InvalidParameterException
error. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | LogStreamNames |
logStreamNamePrefix
and logStreamNames
, but the value for logStreamNamePrefix
does not match any log stream names specified in logStreamNames
, the action returns an InvalidParameterException
error. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Jan 1, 1970 00:00:00 UTC
. Events with a timestamp before this time are not returned. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
true
to display the log event fields with all sensitive data unmasked and visible. The default is false
.To use this operation with this parameter, you must be signed into an account with the logs:Unmask
permission. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AK |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AWSProfilesLocation, ProfilesLocation |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | StoredCredentials, AWSProfileName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | RegionToCall |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | SK, SecretAccessKey |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ST |
AWS Tools for PowerShell: 2.x.y.z