---
title: "GET /logs/global/capabilities"
method: GET
path: "/logs/global/capabilities"
tags: ["Logs"]
---

# GET /logs/global/capabilities

`GET /logs/global/capabilities`

## Request

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

## Response `200`

- GlobalLogCapabilities: What the log explorer can offer on this instance. Attribute facets, histograms and `GROUP BY` analytics need the ClickHouse line index; when it is missing the client shows *why* and where to configure it instead of hiding the feature (CLAUDE.md: unconfigured features onboard).
  - `analytics` AnalyticsCapability, required
    - `backend` 'clickhouse' | 'temps_cloud' | 'timescaledb', nullable: The stores a line index can live in, in the order the plugin prefers them: the instance's own ClickHouse, then Temps Cloud's, then the control-plane TimescaleDB.
    - `configured` boolean, required: `true` when the line index is active and receiving sealed chunks.
    - `example` string, required: What analytics would do here — shown as the example in the onboarding state.
    - `forget_backlog` integer, required: Chunks retired (compacted, purged, or expired by retention) whose removal from the line index has not yet been confirmed — durably queued in `log_line_forget_backlog` and drained by `ForgetSweeper` (ADR-047 §8a). Non-zero for more than a few sweep intervals (30s, see [`crate::services::FORGET_SWEEP_INTERVAL`]) means the index still holds rows for chunks that no longer exist — over-counted in facets/histograms/aggregates until the sweeper catches up.
    - `indexed_chunks` integer, required
    - `live_chunks` integer, required: Live chunks in the manifest and how many of them are indexed. Equal numbers mean the index is complete; a gap is the reindexer's queue.
    - `max_window_days` integer, nullable: Widest window one analytics query answers on this store, in days. The TimescaleDB store clamps `start_time` to this many days before `end_time` so a query can never scan the whole control-plane database; ClickHouse stores are unbounded (`None`).
    - `reason` string, nullable: Exactly what is missing, when `configured` is false.
    - `setup_path` string, required: Console route where the operator fixes it.
  - `collection` LogCollectionCapability, required: Whether new container log lines are being collected right now. Separate from `analytics` because the two fail independently: after a restart the index can be healthy while collection waits on WAL recovery, and without this the explorer shows a histogram that simply stops.
    - `collecting` boolean, required: `true` only in the `running` state.
    - `deferred` DeferredWalGeneration[], required: The oldest few deferred generations.
      - `bytes` integer, required
      - `deferred_at` string, date-time, nullable
      - `file_name` string, required
      - `reason` string, nullable: What recovery could not read and what it did with the rest.
    - `deferred_bytes` integer, required
    - `deferred_count` integer, required: Generations recovery set aside because it could not replay them in full. Collection runs regardless; their lines are missing from search until an operator retries them.
    - `deferred_dir` string, nullable: Directory holding them, on the server's filesystem.
    - `deferred_error` string, nullable: Set when that directory could not be read: the deferred counts and list are then empty because they are unknown, not because nothing was deferred.
    - `details_visible` boolean, required: `false` when the caller is not an instance administrator: `error`, `deferred_dir` and each generation's `reason` are then omitted, and `deferred_error` is generic, since they carry server filesystem paths and raw I/O errors. State and counts are always present, so a paused collector is never hidden.
    - `error` string, nullable: Why collection is paused, verbatim, for `retrying` and `stopped`.
    - `retry_at` string, date-time, nullable: When the next recovery pass starts, for `retrying`.
    - `since` string, date-time, nullable: When the current state began: recovery start for `recovering`, recovery end for `running`.
    - `state` 'running' | 'recovering' | 'retrying' | 'stopped', required

## Other responses

- `403`

## Changes

- **2026-11-09** `12896146b193`: 1 breaking
  - removed the required property `extensions` from the response with the `403` status
- **2026-10-05** `4b228ebed583`: 1 info
  - endpoint added
- **2026-10-05** `63a80791dc58`: 1 breaking
  - api path removed without deprecation
- **2026-09-25** `1c2a1009e0fe`: 1 info
  - added the required property `collection` to the response with the `200` status
- **2026-09-23** `f4efc4d5c7b7`: 1 info
  - added the optional property `status` to the response with the `403` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/logs/global/capabilities/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)
