Module Smaws_Client_CloudWatchLogs.StartLiveTail

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:

The StartLiveTail API routes requests using SDK host prefix injection. SDK versions released before April 1, 2026 route to

streaming-logs.{i Region}.amazonaws.com

, which does not support VPC endpoints. SDK versions released on or after April 1, 2026 route to

stream-logs.{i Region}.amazonaws.com

, which supports VPC endpoints. To set up a VPC endpoint for this API, see Creating a VPC endpoint for CloudWatch Logs.

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.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `InvalidOperationException of Types.invalid_operation_exception | `InvalidParameterException of Types.invalid_parameter_exception | `LimitExceededException of Types.limit_exceeded_exception | `ResourceNotFoundException of Types.resource_not_found_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.start_live_tail_request -> (Types.start_live_tail_response, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `InvalidOperationException of Types.invalid_operation_exception | `InvalidParameterException of Types.invalid_parameter_exception | `LimitExceededException of Types.limit_exceeded_exception | `ResourceNotFoundException of Types.resource_not_found_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.start_live_tail_request -> (Types.start_live_tail_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `InvalidOperationException of Types.invalid_operation_exception | `InvalidParameterException of Types.invalid_parameter_exception | `LimitExceededException of Types.limit_exceeded_exception | `ResourceNotFoundException of Types.resource_not_found_exception ] * Smaws_Lib.Response.metadata) Stdlib.result