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

# Get process logs

> Get the stdout and stderr output of a process



## OpenAPI

````yaml /reference/sandbox-api/openapi.json get /process/{identifier}/logs
openapi: 3.0.0
info:
  description: API for manipulating filesystem, processes and network.
  title: Sandbox API
  contact: {}
  version: 0.0.1
servers:
  - url: https://{sandbox_host}
    description: >-
      Host from the sandbox's returned url, without the scheme or trailing
      slash.
    variables:
      sandbox_host:
        default: sandbox.example.com
security:
  - BearerAuth: []
paths:
  /process/{identifier}/logs:
    get:
      tags:
        - process
      summary: Get process logs
      description: Get the stdout and stderr output of a process
      parameters:
        - description: Process identifier (PID or name)
          name: identifier
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Process logs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProcessLogs'
        '404':
          description: Process not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Unprocessable entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ProcessLogs:
      type: object
      required:
        - logs
        - stderr
        - stdout
      properties:
        logs:
          description: >-
            Concatenation of the returned stdout followed by the returned
            stderr. Output from the two streams is not interleaved.
          type: string
          example: logs output
        stderr:
          type: string
          example: stderr output
        stdout:
          type: string
          example: stdout output
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          example: Error message
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Sandbox access token created through POST /v1/token.

````