Skip to content

CloudWatchLogsClient.start_live_tail

rboto-cloudwatch-logs==0.4.0 · Service index · Types

Model summary (excerpt): 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...

Install and imports

python -m pip install "rboto[cloudwatch-logs]==0.4.0"
from rboto import CloudWatchLogsClient
from collections.abc import Sequence
from rboto_cloudwatch_logs.types import (
    StartLiveTailOutput,
)

Signature

async def start_live_tail(
    *,
    log_group_identifiers: Sequence[str],
    log_stream_names: Sequence[str] | None = None,
    log_stream_name_prefixes: Sequence[str] | None = None,
    log_event_filter_pattern: str | None = None,
) -> StartLiveTailOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
log_group_identifiers Yes An array where each item in the array is a log group to include in the Live Tail session. Specify each log group by its ARN. If you specify an ARN, the ARN can't end with an asterisk (*). You can include up to 10 log groups.
log_stream_names No If you specify this parameter, then only log events in the log streams that you specify here are included in the Live Tail session. If you specify this field, you can't also specify the logStreamNamePrefixes field. You can specify this parameter only if you specify only one log group in logGroupIdentifiers .
log_stream_name_prefixes No If you specify this parameter, then only log events in the log streams that have names that start with the prefixes that you specify here are included in the Live Tail session. If you specify this field, you can't also specify the logStreamNames field. You can specify this parameter only if you specify only one log group in logGroupIdentifiers .
log_event_filter_pattern No An optional pattern to use to filter the results to include only log events that match the pattern. For example, a filter pattern of error 404 causes only log events that include both error and 404 to be included in the Live Tail stream. Regular expression filter patterns are supported. For more information about filter pattern syntax, see Filter and Pattern Syntax .

Output

StartLiveTailOutput.

Typed response mapping, accessed as response["field"].

Field Type Presence References
response_stream AsyncIterator[StartLiveTailResponseStream] Always present StartLiveTailResponseStream

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

StartLiveTailOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

Output streams: StartLiveTailOutput.

Consume with async for. Do not reuse a consumed stream.

Errors

Import from rboto_cloudwatch_logs.exceptions:

AccessDeniedError, InvalidOperationError, InvalidParameterError, LimitExceededError, ResourceNotFoundError, SessionStreamingError, SessionTimeoutError.

Stream decoding may also raise the linked modeled event errors.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model