> ## Documentation Index
> Fetch the complete documentation index at: https://www.ravion.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Stream pipeline step execution logs (SSE)

> Stream this pipeline step execution's CloudWatch logs via SSE. The AWS account, region, log group, and stream prefix are resolved from the step execution's persisted log metadata.



## OpenAPI

````yaml https://api.ravion.com/openapi.yaml get /pipeline-step-executions/{id}/logs/stream
openapi: 3.0.0
info:
  title: Ravion
  version: 0.0.0
servers:
  - url: https://api.ravion.com
security:
  - BearerAuth: []
tags:
  - name: Projects
  - name: Environments
  - name: Pipelines
  - name: PipelineRuns
  - name: TerraformResources
  - name: TerraformExecutionSummaries
  - name: PipelineStepExecutions
  - name: AwsCloudWatch
  - name: PipelineVersions
  - name: Organizations
  - name: Stacks
  - name: StackWorkspaces
  - name: Auth
  - name: OAuth
  - name: User
  - name: Health
  - name: Memberships
  - name: ServiceAccounts
  - name: AwsDefaultNetworks
  - name: AwsAccounts
  - name: ApiKeys
  - name: ExecutionEnvironments
  - name: ModuleDefinitions
  - name: ModuleVersions
  - name: ModuleInstances
  - name: DefaultValueDefinitions
  - name: DefaultValues
  - name: CodeSources
  - name: Github
  - name: Gitlab
  - name: Git
  - name: Values
  - name: Deployments
  - name: DeploymentResources
  - name: InfrastructureEvents
  - name: WebSocket
  - name: Describe
paths:
  /pipeline-step-executions/{id}/logs/stream:
    get:
      tags:
        - PipelineStepExecutions
      summary: Stream pipeline step execution logs (SSE)
      description: >-
        Stream this pipeline step execution's CloudWatch logs via SSE. The AWS
        account, region, log group, and stream prefix are resolved from the step
        execution's persisted log metadata.
      operationId: StreamPipelineStepExecutionLogs
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
        - description: >-
            Start time for historical logs (ISO 8601). Defaults to the step
            execution's startedAt, falling back to createdAt.
          in: query
          name: startTime
          schema:
            nullable: true
            type: string
        - description: >-
            End time for historical logs (ISO 8601). Defaults to 30 seconds
            after completedAt for completed steps, otherwise now. Ignored if
            tail=true.
          in: query
          name: endTime
          schema:
            nullable: true
            type: string
        - description: >-
            If true, after fetching historical logs, switch to live tail mode
            for real-time streaming
          in: query
          name: tail
          schema:
            nullable: true
            type: boolean
        - description: >-
            Optional CloudWatch FilterPattern (e.g. "ERROR" or
            "\"deploy_id\":\"abc\"") applied to historical and live-tail events.
            Empty string disables filtering.
          in: query
          name: filterPattern
          schema:
            nullable: true
            type: string
      responses:
        '200':
          content:
            text/event-stream:
              schema:
                $ref: '#/components/schemas/CloudWatchLogBatchEvent'
          description: SSE stream of CloudWatch log events
components:
  schemas:
    CloudWatchLogBatchEvent:
      additionalProperties: false
      description: SSE event containing a batch of log events
      properties:
        events:
          description: Batch of log events
          items:
            $ref: '#/components/schemas/CloudWatchLogEvent'
          type: array
        isFinal:
          description: Whether this is the final batch of historical logs
          type: boolean
      required:
        - events
        - isFinal
      type: object
    CloudWatchLogEvent:
      additionalProperties: false
      description: A single CloudWatch log event
      properties:
        ingestionTime:
          description: Time when the event was ingested by CloudWatch (ISO 8601)
          type: string
        level:
          description: >-
            The log's severity level: one of `debug`, `info`, `warn`, or
            `error`.
          type: string
        logStreamName:
          description: Name of the log stream this event came from
          type: string
        message:
          description: The log message
          type: string
        timestamp:
          description: Log event timestamp in ISO 8601 format
          type: string
      required:
        - timestamp
        - message
        - logStreamName
      type: object
  securitySchemes:
    BearerAuth:
      scheme: Bearer
      type: http

````