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

# Get logs for an HPC Job

> Retrieve the logs for the HPC Job with the specified Id. Required permissions: `ViewJobs`



## OpenAPI

````yaml /api-specs/cloud/public-api.json get /api/hpc/v1/jobs/{jobId}/logs
openapi: 3.0.3
info:
  title: Domino API
  description: Reference for Domino's public REST API endpoints.
  version: 6.4.0
servers:
  - url: https://mycluster.domino.tech
    description: >-
      Replace 'mycluster.domino.tech' with your Domino cluster hostname. For
      Domino Cloud customers, that is `your-subdomain`.domino.tech (e.g.,
      acme.domino.tech). For self-hosted deployments, it is the hostname you
      reach the Domino UI at.
security:
  - DominoApiKey: []
  - BearerAuthentication: []
tags:
  - name: AppInstances
  - name: AppVersions
  - name: Apps
  - name: AsyncPredictions
  - name: AuditTrail
  - name: BillingTag
  - name: BillingTagSettings
  - name: Cost
  - name: CustomMetrics
  - name: DataSource
  - name: DatasetRw
  - name: DeploymentTargets
  - name: Environments
  - name: Extensions
  - name: GenAI
  - name: HPC Jobs
  - name: HardwareTier
  - name: Jobs
  - name: ModelAPI
  - name: ModelAPIVersion
  - name: ModelDeployment
  - name: Organizations
  - name: PPM
  - name: PersonalAccessToken
  - name: ProjectSharedDatasets
  - name: ProjectTemplates
  - name: Projects
  - name: ProjectsCommits
  - name: ProjectsFiles
  - name: RegisteredModels
  - name: ServiceAccounts
  - name: Users
  - name: Workspaces
paths:
  /api/hpc/v1/jobs/{jobId}/logs:
    get:
      tags:
        - HPC Jobs
      summary: Get logs for an HPC Job
      description: >-
        Retrieve the logs for the HPC Job with the specified Id. Required
        permissions: `ViewJobs`
      operationId: getHPCJobLogs
      parameters:
        - description: Id of HPC Job to get logs for
          in: path
          name: jobId
          required: true
          schema:
            type: string
        - description: Max number of log lines to fetch.
          in: query
          name: limit
          required: false
          schema:
            type: integer
        - description: The epoch time in nanoseconds to start fetching from.
          in: query
          name: latestTimeNano
          required: false
          schema:
            type: string
        - description: Filter log lines by stream type (e.g. stdout, stderr).
          in: query
          name: logType
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HPCLogsV1'
          description: Success
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
components:
  schemas:
    HPCLogsV1:
      properties:
        logset:
          $ref: '#/components/schemas/HPCLogSetV1'
      required:
        - logset
      type: object
    HPCLogSetV1:
      properties:
        isComplete:
          description: Whether all logs for the HPC Job have been retrieved.
          example: true
          type: boolean
        logContent:
          items:
            $ref: '#/components/schemas/HPCLogContentV1'
          type: array
        pagination:
          $ref: '#/components/schemas/HPCLogPaginationV1'
      required:
        - logContent
        - isComplete
      type: object
    ErrorV1:
      properties:
        code:
          description: Machine-readable error code.
          example: NOT_FOUND
          type: string
        message:
          description: Human-readable description of the error.
          example: The requested HPC Job could not be found.
          type: string
      required:
        - message
      type: object
    HPCLogContentV1:
      properties:
        log:
          description: Log message.
          example: log1
          type: string
        logType:
          description: Type of log line.
          example: stdout
          type: string
        size:
          description: Length of the log line.
          example: 116
          type: integer
        timestamp:
          description: Epoch time in milliseconds when the log line was written.
          example: 1779898443284
          format: int64
          type: integer
      required:
        - timestamp
        - logType
        - log
        - size
      type: object
    HPCLogPaginationV1:
      properties:
        latestTimeNano:
          description: >-
            Epoch time in nanoseconds of the last log line. Can be used to fetch
            only logs after a certain time.
          example: '1779902125487000000'
          type: string
        limit:
          description: Max number of log messages to retrieve.
          example: 0
          type: integer
      required:
        - limit
      type: object
  responses:
    '400':
      content:
        application/json:
          schema:
            properties:
              error:
                type: string
            type: object
      description: Bad Request
    '401':
      content:
        application/json:
          example:
            code: UNAUTHORIZED
            message: Authentication is required to access this resource.
          schema:
            $ref: '#/components/schemas/ErrorV1'
      description: Unauthorized - authentication is required or has failed.
    '403':
      content:
        application/json:
          example:
            code: FORBIDDEN
            message: You do not have permission to perform this action.
          schema:
            $ref: '#/components/schemas/ErrorV1'
      description: Forbidden - the caller lacks permission to perform this action.
    '404':
      content:
        application/json:
          schema:
            properties:
              error:
                type: string
            type: object
      description: Not Found
    '500':
      content:
        application/json:
          schema:
            properties:
              error:
                type: string
            type: object
      description: Internal Server Error
  securitySchemes:
    DominoApiKey:
      type: apiKey
      in: header
      name: X-Domino-Api-Key
    BearerAuthentication:
      type: apiKey
      in: header
      name: Authorization

````

## Related topics

- [Get logs for a Job](/api-reference/jobs/get-logs-for-a-job.md)
- [Get HPC Jobs for a project](/api-reference/hpc-jobs/get-hpc-jobs-for-a-project.md)
- [Get HPC Job details](/api-reference/hpc-jobs/get-hpc-job-details.md)
- [Run HPC workloads with Slurm](/cloud/platform-capabilities/features/compute-clusters-hpc/slurm/index.md)
