> ## 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 a running workflow job's logs (SSE)

> Streams the console output of a job that runs on a Ravion runner as the runner writes it, before GitHub serves the job's logs.



## OpenAPI

````yaml https://api.ravion.com/openapi.yaml get /github/actions/repositories/{codeSourceId}/jobs/{jobId}/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: FeatureFlags
  - name: Pipelines
  - name: PipelineRuns
  - name: TerraformResources
  - name: TerraformExecutionSummaries
  - name: PipelineStepExecutions
  - name: AwsCloudWatch
  - name: AwsAmp
  - name: PipelineVersions
  - name: Organizations
  - name: Stacks
  - name: StackWorkspaces
  - name: Auth
  - name: OAuth
  - name: User
  - name: Health
  - name: Memberships
  - name: ServiceAccounts
  - name: Integrations
  - name: AwsDefaultNetworks
  - name: AwsAccounts
  - name: ApiKeys
  - name: EksPrometheus
  - name: EksLoki
  - name: ExecutionEnvironments
  - name: ModuleDefinitions
  - name: ModuleCategories
  - name: ModuleVersions
  - name: ModuleInstances
  - name: DefaultValueDefinitions
  - name: DefaultValues
  - name: CodeSources
  - name: Github
  - name: GitHub Actions
  - name: CI Analytics
  - name: Alerts
  - name: Gitlab
  - name: Slack
  - name: Git
  - name: MergeQueues
  - name: Values
  - name: Deployments
  - name: DeploymentResources
  - name: InfrastructureEvents
  - name: WebSocket
  - name: Domains
  - name: AcmCertificates
  - name: NotificationDestinations
  - name: NotificationDispatches
  - name: NotificationEvents
  - name: NotificationRules
  - name: Activity
  - name: Describe
  - name: Reports
  - name: Support
  - name: BillingPlans
  - name: BillingAccounts
  - name: BillingCycles
  - name: BillingUsageSummaries
  - name: BillingAddOns
  - name: BillingInvoices
  - name: Authorization
  - name: Sandboxes
  - name: SandboxCommands
  - name: SandboxPorts
  - name: Apps
paths:
  /github/actions/repositories/{codeSourceId}/jobs/{jobId}/logs/stream:
    get:
      tags:
        - GitHub Actions
      summary: Stream a running workflow job's logs (SSE)
      description: >-
        Streams the console output of a job that runs on a Ravion runner as the
        runner writes it, before GitHub serves the job's logs. Answers 404 for
        jobs that did not run on a Ravion runner.
      operationId: StreamGithubActionsJobLiveLogs
      parameters:
        - in: path
          name: codeSourceId
          required: true
          schema:
            type: string
        - in: path
          name: jobId
          required: true
          schema:
            type: string
        - description: >-
            If true, after fetching the output written so far, switch to live
            tail mode
          in: query
          name: tail
          schema:
            nullable: true
            type: boolean
        - in: query
          name: organizationId
          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
        missingLogGroups:
          description: >-
            Requested log groups that do not exist in the requested account and
            region. CloudWatch reports a missing group as an error, but the
            stream treats it as "no logs yet" so a deploy whose task has not
            booted still renders; this field lets a client tell a missing group
            (often a wrong region) apart from a quiet one.
          items:
            type: string
          type: array
      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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.