---
title: "Retrieve full execution log of a DAG-run"
method: GET
path: "/dag-runs/{name}/{dagRunId}/log"
tags: ["dag-runs"]
---

# Retrieve full execution log of a DAG-run

`GET /dag-runs/{name}/{dagRunId}/log`

Fetches the execution log for a DAG-run

## Path parameters

- `name` string, regex, required — Name of the DAG
- `dagRunId` string, required — Unique identifier for the DAG-run. The special value 'latest' can be used to reference the most recent DAG-run.

## Query parameters

- `remoteNode` string
- `tail` integer
- `head` integer
- `offset` integer
- `limit` integer

## Response `200`

A successful response

- Log — Log information for the execution
  - `content` string, required — Log content
  - `lineCount` integer — Number of lines returned
  - `totalLines` integer — Total number of lines in the log file
  - `hasMore` boolean — Whether there are more lines available
  - `isEstimate` boolean — Whether the line count is an estimate

## Other responses

- `404` — Log file not found
- `default` — Generic error response

## Changes

- **2026-07-23** (v1) `75b8e91aaf57` — 6 warning
  - added the new `conflict` enum value to the `code` response property for the response status `404`
  - added the new `conflict` enum value to the `code` response property for the response status `default`
  - added the new `human_task_resume_failed` enum value to the `code` response property for the response status `404`
  - added the new `human_task_resume_failed` enum value to the `code` response property for the response status `default`
  - …2 more
- **2026-05-24** (v1) `8a2d5d3e9608` — 2 warning
  - added the new `rate_limited` enum value to the `code` response property for the response status `404`
  - added the new `rate_limited` enum value to the `code` response property for the response status `default`
- **2026-04-30** (v1) `50e1d517afc1` — 2 info
  - removed the `rate_limited` enum value from the `code` response property for the response status `404`
  - removed the `rate_limited` enum value from the `code` response property for the response status `default`

[Change history](https://skmtc.dev/dagucloud/apis/dagu/changes/dag-runs/:name/:dagRunId/log/get.md)

---

[API](https://skmtc.dev/dagucloud/apis/dagu.md) · [All operations](https://skmtc.dev/dagucloud/apis/dagu/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dagucloud/dagu/revisions/6f043af8f6d3/schema)
