---
search:
  tags:
    - Telemetry
    - GET
seo:
  description: >-
    Returns a tenant's log lines over a span of time, oldest first: the lines
    your… Reference for the GET /_luna/telemetry/{tenant}/logs endpoint in the
    Luna API.
sidebar:
  label: Query logs
  badge: GET
title: Query logs
type: openapi-operation
---
Returns a tenant's log lines over a span of time, oldest first: the lines your code writes and the lines Luna writes about each call, wake and failure. When more lines match than `limit`, you get the newest ones.

`GET /_luna/telemetry/{tenant}/logs`

**Responses**

- `200` — The lines that match.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "logs": [
    {
      "seq": "string",
      "member": 0,
      "tsMs": 0,
      "level": "string",
      "body": "string",
      "lunaType": "string",
      "key": "string",
      "handler": "string",
      "callId": "string",
      "traceId": "string",
      "spanId": "string",
      "version": 0,
      "source": "string",
      "event": "string",
      "attrs": {}
    }
  ],
  "cursor": "string"
}
```
