> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# jaccard logs

> Read what your agents and sandboxes printed, and the platform's events about them, with jaccard logs: filter by level, text, source and time.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
jaccard logs                 # the whole organization, last hour, newest last
jaccard logs my-agent --level error --since 24h
jaccard logs my-agent --grep sandbox --source platform
jaccard logs my-agent --follow
jaccard logs --json | jq 'select(.event == "sandbox.refused")'
```

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
18:54:18.831  INFO   platform  my-agent  env.set  key=OPENAI_API_KEY kind=Secret  set env
```

Without an agent name, `logs` shows the whole organization, even from inside a project. Or open **Logs** in the [console](/docs/operate/console.md), for one agent or the whole organization, with the same filters.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
jaccard logs [OPTIONS] [AGENT]
```

| Option | What it does |
| - | - |
| `[AGENT]` | Only this agent's logs. Without it, every agent in the organization. |
| `--agent <NAME>` | The agent, as a flag instead of the first argument. |
| `--since <DURATION>` | Start this long ago, such as `15m`, `6h` or `2d`, at most `7d`. Default: an hour before `--until`, or a minute with `--follow`. |
| `--until <DURATION>` | Stop this long ago. Default: now. |
| `--level <LEVEL>` | Only this level and above: `debug`, `info`, `warn` or `error`. The level is read from the line. |
| `--grep <TEXT>` | Only lines containing this text, in any case. |
| `--source <SOURCE>` | Only this source: `agent`, `sandbox` or `platform`. Repeat for more than one. |
| `--limit <N>` | At most this many lines, the newest in the window, from 1 to 1000. Default `200`. |
| `-f`, `--follow` | Keep printing new lines until Ctrl-C, reconnecting if the connection drops. Can't be combined with `--until` or `--limit`. |
| `--json` | One JSON object per line. |

> [accordion] JSON fields
>
> `time` (UTC), `level`, `source`, `agent`, `message`, `instance`, and for platform events `event` and `fields`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.