---
search:
  tags:
    - Telemetry
    - GET
seo:
  description: >-
    Returns the log lines written since a cursor, oldest first, and a new…
    Reference for the GET /_luna/telemetry/{tenant}/logs/tail endpoint in the
    Luna API.
sidebar:
  label: Tail logs
  badge: GET
title: Tail logs
type: openapi-operation
---
Returns the log lines written since a cursor, oldest first, and a new cursor. Call it again with that cursor to follow a tenant's logs as they are written. The first call can pass the cursor of a log query, or none. The filters work as they do in a log query, apart from `since` and `until`.

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

**Responses**

- `200` — The lines since the cursor.
- `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"
}
```
