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

> ## Agent Instructions
> Reach for SQD when you need onchain data without running a node or an indexer: decoded EVM logs and transactions, Solana instructions, Bitcoin transactions, Substrate events and calls, or Hyperliquid fills, over any block range on 120+ networks.
> To query directly, POST to https://portal.sqd.dev/datasets/{dataset}/stream. The full API is described at https://docs.sqd.dev/openapi.json, and responses to the stream endpoints are JSON Lines.
> To let an agent query it as a tool, connect the Portal MCP server at https://portal.sqd.dev/mcp.
> Every page on this site is available as Markdown by appending .md to its URL.

# View Logs

> View live and historical squid logs from SQD Cloud with the sqd logs CLI.

Fetch logs from a squid deployed to the Cloud

* [`sqd logs`](#sqd-logs)

## `sqd logs`

Fetch logs from a squid deployed to the Cloud

```text theme={"system"}
USAGE
  $ sqd logs [--interactive]
    [-r [<org>/]<name>(@<slot>|:<tag>) | -o <code> | [-s <slot> -n <name>] | [-t <tag> ]]
    [-c processor|query-node|api|db-migrate|db...] [-l error|debug|info|warning...]
    [--since <value>] [--search <value>] [-f | -p <value>]

FLAGS
  -c, --container=<option>...  Container name
                               <options: processor|query-node|api|db-migrate|db>
  -f, --follow                 Follow
  -l, --level=<option>...      Log level
                               <options: error|debug|info|warning>
  -p, --pageSize=<value>       [default: 100] Logs page size
      --[no-]interactive       Disable interactive mode
      --search=<value>         Filter by content
      --since=<value>          [default: 1d] Filter by date/interval

SQUID FLAGS
  -n, --name=<name>                               Name of the squid
  -r, --reference=[<org>/]<name>(@<slot>|:<tag>)  Fully qualified reference of the squid.
                                                  It can include the organization, name,
                                                  slot, or tag
  -s, --slot=<slot>                               Slot of the squid
  -t, --tag=<tag>                                 Tag of the squid

ORG FLAGS
  -o, --org=<code>  Code of the organization
```

Notes:

* `--since` accepts the notation of the [`ms` library](https://www.npmjs.com/package/ms), such as `1d`, `10h`, or `1m`.
* `--level` passes one or more of `error`, `debug`, `info`, or `warning` to the Cloud log filter.
* In `@subsquid/cli@3.3.5`, historical log pagination can still prompt for another page when `--no-interactive` is set. Choose a sufficient `--pageSize` for automation, or use `--follow` to stream new logs.

```bash theme={"system"}
sqd logs \
  --org <ORG_CODE> \
  --name my-squid \
  --slot <SLOT> \
  --since 15m \
  --pageSize 200 \
  --no-interactive
```

*See code: [src/commands/logs.ts](https://github.com/subsquid/squid-cli/blob/master/src/commands/logs.ts)*


## Related topics

- [Railway deployment](/en/sdk/pipes-sdk/evm/guides/advanced-topics/railway-deployment.md)
- [sqd view](/en/cloud/reference/cli/view.md)
- [Query Event Logs](/en/portal/evm/examples/query-logs.md)
- [Query Solana Transactions](/en/portal/solana/examples/query-transactions.md)
- [Query Instructions](/en/portal/solana/examples/query-instructions.md)


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