2026-01-15 06:12:54 +00:00
|
|
|
---
|
2026-01-30 03:15:10 +01:00
|
|
|
summary: "CLI reference for `openclaw logs` (tail gateway logs via RPC)"
|
2026-01-15 06:12:54 +00:00
|
|
|
read_when:
|
|
|
|
|
- You need to tail Gateway logs remotely (without SSH)
|
|
|
|
|
- You want JSON log lines for tooling
|
2026-01-31 16:04:03 -05:00
|
|
|
title: "logs"
|
2026-01-15 06:12:54 +00:00
|
|
|
---
|
|
|
|
|
|
2026-01-30 03:15:10 +01:00
|
|
|
# `openclaw logs`
|
2026-01-15 06:12:54 +00:00
|
|
|
|
|
|
|
|
Tail Gateway file logs over RPC (works in remote mode).
|
|
|
|
|
|
|
|
|
|
Related:
|
2026-01-31 21:13:13 +09:00
|
|
|
|
2026-01-15 06:12:54 +00:00
|
|
|
- Logging overview: [Logging](/logging)
|
|
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-01-30 03:15:10 +01:00
|
|
|
openclaw logs
|
|
|
|
|
openclaw logs --follow
|
|
|
|
|
openclaw logs --json
|
|
|
|
|
openclaw logs --limit 500
|
2026-02-11 21:24:08 +08:00
|
|
|
openclaw logs --local-time
|
|
|
|
|
openclaw logs --follow --local-time
|
2026-01-15 06:12:54 +00:00
|
|
|
```
|
2026-02-11 21:24:08 +08:00
|
|
|
|
2026-02-11 08:34:03 -05:00
|
|
|
Use `--local-time` to render timestamps in your local timezone.
|