Logs Missing
Symptoms
Section titled “Symptoms”- logs panel is empty for a service you expect to be noisy
get_logsreturns fewer entries than expected- historical logs seem to disappear after reconnect or restart
Likely causes
Section titled “Likely causes”- the service is not running or selected scope is wrong
- response was truncated by effective log limit
- you are relying only on live
logevents and missed some events - server restarted and in-memory history reset
- disk projection (
logs.dir) is not enabled
Resolution
Section titled “Resolution”- Confirm the service status first (
runningorready). - Request logs without forcing a small client limit:
{ "type": "command", "id": "logs-1", "name": "get_logs", "payload": { "service": "api" }}- Check
truncatedandeffective_limitin the result.effective_limitreflects the applied server policy. If the request has no explicitlimit, the server applies matchinglogViewoverride rules, thenlogs.bufferSizedefault (5000). - For continuity, track last
seqand replay withafter_seq. - If you need session files, set
logs.dirand read projected JSONL files.
Expectations to set
Section titled “Expectations to set”- Live
logevents are best-effort. get_logsis the reliable recovery path.- Without disk projection, history is tied to the current server session.
See Protocol for get_logs command semantics and Configuration for logs.dir and logView fields.