---
search:
  tags:
    - Agents Observability
    - GET
seo:
  description: >-
    Per-job log lines for one agent or KB. Reference for the GET
    /agentic/observability/logs endpoint in the Streamkap REST API.
sidebar:
  label: Get Observability Logs
  badge: GET
title: Get Observability Logs
type: openapi-operation
---
Per-job log lines for one agent or KB.

Replaces the namespace-scoped kubectl tail with a per-``job_name``
ClickHouse query. ``agent_id`` resolves to the prefix
``agent_<id>_`` or ``kb_<id>_`` via the doc's ``job_type``; the
prefix LIKE catches every redeploy version of the entity so log
history survives re-deploys.

Returns 404 when the id doesn't belong to this tenant + service (or
the doc's ``job_type`` isn't agent / KB). Returns 503 with a
structured ``kind`` when the ``flink_logs`` table is missing or
a column has drifted.

`GET /agentic/observability/logs`
