---
title: "Query log records with optional filters."
method: GET
path: "/otel/logs"
tags: ["Telemetry Logs"]
---

# Query log records with optional filters.

`GET /otel/logs`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/otel/logs`
- Auth: HTTP bearer

## Query parameters

- `project_id` integer, required
- `severity` string
- `service_name` string
- `search` string
- `attribute_key` string
- `attribute_value` string
- `attribute_type` 'string' | 'boolean' | 'integer' | 'double' | 'array' | 'object' | 'bytes'
- `attribute_op` 'eq' | 'ne' | 'lt' | 'lte' | 'gt' | 'gte'
- `trace_id` string
- `start_time` string
- `end_time` string
- `limit` integer
- `offset` integer

## Response `200`

Log records

- LogsResponse
  - `count` integer, required
  - `data` LogRecord[], required
    - `attribute_types` object: Declared native types for keys in `attributes`; absent on older records.
    - `attributes` object, required
    - `body` string, required
    - `deployment_id` integer, nullable
    - `observed_timestamp` string, date-time, required
    - `project_id` integer, required
    - `resource` ResourceInfo, required: Resource attributes extracted from OTel resource descriptors.
      - `attributes` object, required
      - `deployment_environment` string, nullable
      - `service_name` string, required
      - `service_version` string, nullable
    - `severity` 'TRACE' | 'DEBUG' | 'INFO' | 'WARN' | 'ERROR' | 'FATAL', required: Log severity level (simplified from OTel's 24 levels).
    - `severity_text` string, required
    - `span_id` string, nullable
    - `timestamp` string, date-time, required
    - `trace_id` string, nullable

## Other responses

- `400`: Invalid log attribute filter
- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 4 breaking
  - removed the required property `extensions` from the response with the `400` status
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-21** `bf4d047d0bb8`: 6 info
  - added the new optional `query` request parameter `attribute_key`
  - added the new optional `query` request parameter `attribute_op`
  - added the new optional `query` request parameter `attribute_type`
  - added the new optional `query` request parameter `attribute_value`
  - …2 more
- **2026-10-21** `79089e9f49ee`: 5 warning, 1 info
  - deleted the `query` request parameter `attribute_key`
  - deleted the `query` request parameter `attribute_op`
  - deleted the `query` request parameter `attribute_type`
  - deleted the `query` request parameter `attribute_value`
  - …2 more
- **2026-10-21** `24add76f6317`: 6 info
  - added the new optional `query` request parameter `attribute_key`
  - added the new optional `query` request parameter `attribute_op`
  - added the new optional `query` request parameter `attribute_type`
  - added the new optional `query` request parameter `attribute_value`
  - …2 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/otel/logs/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
