The /logs command displays OpenClaw service logs from a deployed instance. It fetches logs from the systemd journal and provides real-time monitoring capabilities.
/logs - Select a deployment┌────────────────────────────────────────────┐│ > production-claude 203.0.113.45 ││ staging-test 198.51.100.23 │└────────────────────────────────────────────┘Arrow keys to select | Enter to view logs | Esc to go back
Logs: production-claude | Auto: OFF | Fetched: 2:45:30 PM┌────────────────────────────────────────────────────────────────┐│ Feb 28 14:30:15 OpenClaw agent starting... ││ Feb 28 14:30:16 Connected to Anthropic API ││ Feb 28 14:30:17 Telegram bot initialized ││ Feb 28 14:30:18 Gateway listening on port 18789 ││ Feb 28 14:35:22 Received message from user 123456789 ││ Feb 28 14:35:23 Processing command: /help ││ Feb 28 14:35:25 Response sent ││ Feb 28 14:40:01 Health check: OK ││ Feb 28 14:45:15 Memory usage: 456MB / 2GB │└────────────────────────────────────────────────────────────────┘R: Refresh | A: Toggle auto-refresh | Esc: Back | Showing last 200 lines
Feb 28 11:23:45 [Telegram] Message received from user 123456789Feb 28 11:23:46 [Agent] Processing user requestFeb 28 11:23:47 [AI] Sending prompt to Anthropic APIFeb 28 11:23:49 [AI] Received response (156 tokens)Feb 28 11:23:50 [Agent] Executing tool: bashFeb 28 11:23:51 [Tool] Command completed successfullyFeb 28 11:23:52 [Telegram] Response sent to user
Feb 28 12:15:30 ERROR: Failed to connect to AI providerFeb 28 12:15:30 Error: ECONNREFUSEDFeb 28 12:15:30 Retrying in 5 seconds...Feb 28 12:15:35 Connection established
> /logs/logs - Select a deployment┌────────────────────────────────────────────┐│ > production-claude 203.0.113.45 │└────────────────────────────────────────────┘[Enter]Loading logs...Logs: production-claude | Auto: OFF | Fetched: 2:47:10 PM┌────────────────────────────────────────────────────────────────┐│ Feb 28 14:30:15 OpenClaw agent starting... ││ Feb 28 14:30:16 Connected to Anthropic API ││ Feb 28 14:35:22 Received message from user 123456789 ││ Feb 28 14:40:01 Health check: OK │└────────────────────────────────────────────────────────────────┘[Press R]Fetching logs...Logs: production-claude | Auto: OFF | Fetched: 2:47:15 PM[Updated logs appear][Press A]Logs: production-claude | Auto: ON (5s) | Fetched: 2:47:20 PM[Logs refresh automatically every 5 seconds][Press Esc]> _
/logs - View deployment logs┌────────────────────────────────────────────┐│ No deployed instances found! ││ Deploy an instance first with /deploy │└────────────────────────────────────────────┘Press any key to return to home
Error Loading Logs┌────────────────────────────────────────────┐│ Failed to fetch logs: Connection timeout │└────────────────────────────────────────────┘Press any key to go back