Skip to content

Request logs

The page an API dashboard opens when someone asks what happened to a request. Traffic bars with release marks, a drag to zoom a time range, filter chips with and or logic and a query line, a table that draws only the rows in view, and a sheet with the request and response headers and body, plus a Replay that can be cancelled.

On this page

Examples

Controlled

No traffic yet

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

logsrequired
RequestLog[]
{ id, at (epoch ms), method, path, status, latencyMs, bytes?, release?, requestHeaders?, responseHeaders?, requestBody?, responseBody? }. A body is a parsed value (shown in the JSON inspector) or a string (shown as code). Any order; the table lists newest first.
releases
ReleaseMarker[]
Default[]
{ id, at, label }. Drawn as dashed marks on the bars, with a flag that names the release on hover and focus.
range / defaultRange / onRangeChange
TimeRange | null / TimeRange | null / (range) => void
Defaultnull
The zoomed time range, { from, to } in epoch ms, or null for everything. A drag on the bars (or Enter on a keyboard selection) sets it; Zoom out widens it by a step and Reset clears it.
filter / defaultFilter / onFilterChange
LogFilter / LogFilter / (filter) => void
Default{}
Field id to values: method (GET), status (5xx or 404), path (/v1/orders, or /v1/ord*), latency (<100, 100-500, >500). Values inside a field are OR.
mode / defaultMode / onModeChange
"all" | "any" / "all" / (mode) => void
Default"all"
How fields combine: all is AND, any is OR. The switch appears once two fields are active.
selected / defaultSelected / onSelect
string | null / string | null / (id) => void
Defaultnull
The log whose sheet is open.
onReplay
(log, signal) => Promise<{ statusCode?, latencyMs? } | void>
Adds Replay to the sheet. The signal aborts on Cancel, when another replay starts and on unmount; a late answer is dropped. Throw to show the message and Replay again. Without it the button is not shown.
origin
string
Default""
Written before the path in Copy as cURL.
buckets
number
Default48
Bars across the strip. Each bar is a bucket of the visible range.
tableHeight
number
Default360
Height of the log table in px. Only the rows in view are drawn.
title / description
ReactNode
DefaultRequest logs
The heading and the line under it. The region is named by the title: give each block on a page its own.
headingLevel
2 | 3 | 4
Default2
The level of the title.
Query line
text
method:GET,POST status:5xx latency:>500 path:/v1/orders/*. One-letter names (m, s, p, l) work, and a bare or makes the fields combine with any. Enter applies it; a term it does not understand is named and nothing changes.
Keyboard
bars and table
On the bars: Left and Right move, Shift extends, Enter zooms to the selection, Escape clears it. The table is one tab stop: Up and Down, Home, End, Page Up and Page Down move, Enter or Space opens the sheet.
Motion
bars and sheet
Bars glide to their new heights when the range or filter changes, the sheet slides in as a Sheet does, and Copy swaps text. Nothing plays on first render and reduced motion makes it instant.
a11y
region
The bars are a group with a text readout for the bar under the pointer or keys. Status is a number in a badge, never colour alone. The count line and the replay result are polite live regions.

When to use

When to use

  • An API dashboard where someone asks what happened to a request: filter the traffic, zoom to the minutes around a deploy, open one request and send it again.
  • Support and on-call work that starts from a time range and a status class and ends at the exact headers and body.

When not to use

  • Endpoints that receive your events and their deliveries: use Webhooks.
  • A live view of runs, latency and spend that updates as it happens: use Live Metrics.
  • One chart with no table or sheet around it: use Chart.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Request Logs to my app and wire it to my own data.
  • I need an API dashboard where someone asks what happened to a request: filter the traffic, zoom to the minutes around a deploy, open one request and send it again. Set that up with the Knowns UI Request Logs.
  • Which Request Logs props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "request-logs" }) and search_docs({ query: "request logs" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Request Logs, or found something off? We read every message.