Amazon.CloudWatchLogs.AmazonCloudWatchLogsClient.GetLogEvents C# (CSharp) Method

GetLogEvents() public method

Lists log events from the specified log stream. You can list all the log events or filter using a time range.

By default, this operation returns as many log events as can fit in a response size of 1MB (up to 10,000 log events). If the results include tokens, there are more log events available. You can get additional log events by specifying one of the tokens in a subsequent call.

/// A parameter is specified incorrectly. /// /// The specified resource does not exist. /// /// The service cannot complete the request. ///
public GetLogEvents ( GetLogEventsRequest request ) : GetLogEventsResponse
request Amazon.CloudWatchLogs.Model.GetLogEventsRequest Container for the necessary parameters to execute the GetLogEvents service method.
return Amazon.CloudWatchLogs.Model.GetLogEventsResponse
        public GetLogEventsResponse GetLogEvents(GetLogEventsRequest request)
        {
            var marshaller = new GetLogEventsRequestMarshaller();
            var unmarshaller = GetLogEventsResponseUnmarshaller.Instance;

            return Invoke<GetLogEventsRequest,GetLogEventsResponse>(request, marshaller, unmarshaller);
        }
AmazonCloudWatchLogsClient