---
title: "Get job logs"
method: GET
path: "/v1/projects/{projectId}/jobs/{jobId}/logs"
tags: ["Jobs", "project"]
---

# Get job logs

`GET /v1/projects/{projectId}/jobs/{jobId}/logs`

## Request

- Base URL: `https://placeholder/v1`
- URL: `https://placeholder/v1/v1/projects/{projectId}/jobs/{jobId}/logs`
- Auth: none required
- TypeScript: <https://skmtc.dev/northflank/apis/northflank-api/docs/v1/projects/:projectId/jobs/:jobId/logs/get.ts> (a function with typed inputs; its response is checked against the schema)

Get logs for a job

## Path parameters

- `projectId` string, required: ID of the project
- `jobId` string, required: ID of the job

## Query parameters

- `runId` string: Limits metrics to a specific job run id.
- `type` 'cdn' | 'mesh' | 'ingress' | 'runtime' | 'build' | 'backup' | 'restore': Type of log. Multiple log types can be selected by specifying the query parameter repeatedly.
- `containerName` union
  - string[]
  - string
- `queryType` 'range': `range` selects a log range and returns immediately.
- `startTime` string, date-time: Fetch logs generated after this timestamp.
- `endTime` string, date-time: Fetch logs generated before this timestamp.
- `duration` integer: Range duration in seconds. If set, only one of `startTime` or `endTime` can be set.
- `lineLimit` integer: Number of log lines to fetch.
- `direction` 'backward' | 'forward': Ordering of log lines
- `textIncludes` string: Filter log lines to match this search string
- `textNotIncludes` string: Filter log lines to not match this search string
- `regexIncludes` string: Filter log lines to match this regular expression
- `regexNotIncludes` string: Filter log lines to not match this regular expression

## Response `200`

List of logs values

---

[API](https://skmtc.dev/northflank/apis/northflank-api.md) - [All operations](https://skmtc.dev/northflank/apis/northflank-api/llms.txt) - [OpenAPI document](https://skmtc.dev/northflank/apis/northflank-api/revisions/6511db980148?raw)
