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 3.5
 
Retrieves log events from the specified log stream. You can provide an optional time range to filter the results on the event timestamp.

By default, this operation returns as much log events as can fit in a response size of 1MB, up to 10,000 log events. The response will always include a nextForwardToken and a nextBackwardToken in the response body. You can use any of these tokens in subsequent GetLogEvents requests to paginate through events in either forward or backward direction. You can also limit the number of log events returned in the response by specifying the limit parameter in the request.

Namespace: Amazon.CloudWatchLogs
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public abstract GetLogEventsResponse GetLogEvents(
         GetLogEventsRequest request
)

Parameters

request
Type: Amazon.CloudWatchLogs.Model.GetLogEventsRequest

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

Return Value
Type: Amazon.CloudWatchLogs.Model.GetLogEventsResponse
The response from the GetLogEvents 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