AWS SDK Version 2 for .NET
API Reference

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.

.NET Framework 4.5
 
Retrieves log events, optionally filtered by a filter pattern from the specified log group. You can provide an optional time range to filter the results on the event 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
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public abstract FilterLogEventsResponse FilterLogEvents(
         FilterLogEventsRequest request
)

Parameters

request
Type: Amazon.CloudWatchLogs.Model.FilterLogEventsRequest

Container for the necessary parameters to execute the FilterLogEvents service method.

Return Value
Type: Amazon.CloudWatchLogs.Model.FilterLogEventsResponse
The response from the FilterLogEvents service method, as returned by CloudWatchLogs.

Exceptions

ExceptionCondition
InvalidParameterException Returned if a parameter of the request is incorrectly specified.
ResourceNotFoundException Returned if the specified resource does not exist.
ServiceUnavailableException Returned if the service cannot complete the request.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5