Skip to content

Live Logs

Project sidebar → Live Logs is a real-time view of the project’s gateway requests. Every request lands in gateway_logs; the Live Logs page polls for new rows and renders them as a stream.

ColumnMeaning
Timecreated_at formatted as HH:mm:ss.mmm
Statusok / error (coloured chip)
EndpointSlug, with link
ProviderProvider key + model
Latencylatency_ms
Tokenstotal_tokens
Action”View” — opens the modal

The newest rows are at the top.

Default: poll every 2 seconds. New rows slide in.

Click Pause to freeze the view (useful when reading a specific request without it scrolling away). Click Resume to restart.

The search box accepts a small DSL:

FilterEffect
status:ok / status:errorFilter by status
provider:openaiFilter by provider key
model:gpt-4o-miniFilter by provider_model
endpoint:my-slugFilter by endpoint_slug
error:timeoutSubstring match on error_message
Bare textSubstring match across all fields

Combine: status:error provider:openai endpoint:summarize.

Click View on a row → a modal with three tabs:

Shows the request body (JSON-pretty-printed). For chat completions, that’s the messages array.

Shows the assistant content plus token counts and finish reason.

Full gateway_logs row as JSON: every column, every metadata field. Useful when debugging the audit / log pipeline itself.

  • The poll endpoint returns at most 50 new rows per call — id > $last_seen_id.
  • Logs include the request body by default. If your endpoint receives sensitive data, consider redacting it via a guardrail (e.g. mask-mode PII filter) so the log entry itself is sanitised.
  • Logs persist forever by default. Prune via php artisan tinker if you need to (see Database Setup).

The endpoint detail page’s “Recent trace” links to Live Logs filtered to that endpoint. So you can drill from a 1h KPI down to the actual requests behind it.

  • ❌ No streaming via SSE — the page polls. Truly live (push) is a roadmap item; for most volumes 2-second polling is indistinguishable.
  • ❌ No export to CSV from Live Logs (use the Audit Log’s CSV export for forensic purposes — gateway logs export is roadmap).
  • ❌ Filter is in-memory after fetch; it doesn’t push the filter to the database. So very-busy gateways may see slight lag when filtering by rare values.

Next: Playground.


© Akyros Labs LLC. All rights reserved.