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.
timestamp
. You can limit the streams searched to an explicit
list of logStreamNames
.
By default, this operation returns as much matching log events as can fit in a response
size of 1MB, up to 10,000 log events, or all the events found within a time-bounded
scan window. If the response includes a nextToken
, then
there is more data to search, and the search can be resumed with a new request providing
the nextToken. The response will contain a list of searchedLogStreams
that contains information about which streams were searched in the request and whether
they have been searched completely or require further pagination. The limit
parameter in the request. can be used to specify the maximum number of events to return
in a page.
Namespace: Amazon.CloudWatchLogs.Model
Assembly: AWSSDK.dll
Version: (assembly version)
public class FilterLogEventsRequest : AmazonCloudWatchLogsRequest IRequestEvents
The FilterLogEventsRequest type exposes the following members
Name | Description | |
---|---|---|
FilterLogEventsRequest() |
Name | Type | Description | |
---|---|---|---|
EndTime | System.Int64 |
Gets and sets the property EndTime.
A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp later than this time are not returned. |
|
FilterPattern | System.String |
Gets and sets the property FilterPattern.
A valid CloudWatch Logs filter pattern to use for filtering the response. If not provided, all the events are matched. |
|
Interleaved | System.Boolean |
Gets and sets the property Interleaved.
If provided, the API will make a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response. If not provided, all the matched log events in the first log stream will be searched first, then those in the next log stream, etc. |
|
Limit | System.Int32 |
Gets and sets the property Limit.
The maximum number of events to return in a page of results. Default is 10,000 events. |
|
LogGroupName | System.String |
Gets and sets the property LogGroupName.
The name of the log group to query. |
|
LogStreamNames | System.Collections.Generic.List<System.String> |
Gets and sets the property LogStreamNames.
Optional list of log stream names within the specified log group to search. Defaults to all the log streams in the log group. |
|
NextToken | System.String |
Gets and sets the property NextToken.
A pagination token obtained from a |
|
StartTime | System.Int64 |
Gets and sets the property StartTime.
A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp prior to this time are not returned. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5