AWS SDK Version 3 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.

Starts a Live Tail streaming session for one or more log groups. A Live Tail session returns a stream of log events that have been recently ingested in the log groups. For more information, see Use Live Tail to view logs in near real time.

The response to this operation is a response stream, over which the server sends live log events and the client receives them.

The following objects are sent over the stream:

You can end a session before it times out by closing the session stream or by closing the client that is receiving the stream. The session also ends if the established connection between the client and the server breaks.

For examples of using an SDK to start a Live Tail session, see Start a Live Tail session using an Amazon Web Services SDK.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to StartLiveTailAsync.

Namespace: Amazon.CloudWatchLogs
Assembly: AWSSDK.CloudWatchLogs.dll
Version: 3.x.y.z

Syntax

C#
public abstract StartLiveTailResponse StartLiveTail(
         StartLiveTailRequest request
)

Parameters

request
Type: Amazon.CloudWatchLogs.Model.StartLiveTailRequest

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

Return Value


The response from the StartLiveTail service method, as returned by CloudWatchLogs.

Exceptions

ExceptionCondition
AccessDeniedException You don't have sufficient permissions to perform this action.
InvalidOperationException The operation is not valid on the specified resource.
InvalidParameterException A parameter is specified incorrectly.
LimitExceededException You have reached the maximum number of resources that can be created.
ResourceNotFoundException The specified resource does not exist.

Version Information

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

See Also