---
title: "Retrieve log for a specific step in a DAG-run"
method: GET
path: "/dag-runs/{name}/{dagRunId}/steps/{stepName}/log"
tags: ["dag-runs"]
---

# Retrieve log for a specific step in a DAG-run

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

Fetches the log for an individual step in 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.
- `stepName` string, required

## Query parameters

- `remoteNode` string
- `tail` integer
- `head` integer
- `offset` integer
- `limit` integer
- `stream` 'stdout' | 'stderr', string

## 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

---

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