---
title: "Get a Log given UID"
method: GET
path: "/v1alpha2/parents/{parent}/results/{result_uid}/logs/{log_uid}"
tags: ["Logs"]
---

# Get a Log given UID

`GET /v1alpha2/parents/{parent}/results/{result_uid}/logs/{log_uid}`

## Request

- Base URL: `https://localhost:8080/apis/results.tekton.dev`
- URL: `https://localhost:8080/apis/results.tekton.dev/v1alpha2/parents/{parent}/results/{result_uid}/logs/{log_uid}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/tektoncd/apis/tekton-results-api-specification/docs/v1alpha2/parents/:parent/results/:result_uid/logs/:log_uid/get.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

- Log: Log is a chunk of a log.
  - `contentType` string, required: Resource content type header for the log.
  - `data` string, byte, required: The log data as bytes.

## Changes

- **2023-10-31** `3dc0a951b1bd`: 1 breaking, 1 info
  - removed the required property `name` from the response with the `200` status
  - added the required property `contentType` to the response with the `200` status
- **2023-04-03** `8fb26784c7aa`: 1 breaking, 1 info
  - removed the required property `contentType` from the response with the `200` status
  - added the required property `name` to the response with the `200` status

[Operation history](https://skmtc.dev/tektoncd/apis/tekton-results-api-specification/changes/v1alpha2/parents/:parent/results/:result_uid/logs/:log_uid/get.md)

---

[API](https://skmtc.dev/tektoncd/apis/tekton-results-api-specification.md) - [All operations](https://skmtc.dev/tektoncd/apis/tekton-results-api-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/tektoncd/apis/tekton-results-api-specification/revisions/278d1aed13c1?raw)
