# nodus logs

> Print or follow a resource's output

Source: https://nodus-platform-site.pages.dev/docs/reference/cli/nodus_logs/
Build revision: 211ad9f836655b1c3a2668c4693e442471f28614

## nodus logs

Print or follow a resource’s output

```plaintext
nodus logs KIND/NAME [-f] [flags]
```

### Examples

```plaintext
  nodus logs -f job/finetune
  nodus logs job/ddp --all-ranks
  nodus logs sb/dev --process 12
```

### Options

```plaintext
      --all-indexes      Every index of an Indexed Job
      --all-ranks        Every gang member, each line prefixed with its rank
      --attempt int      Attempt number (default: the current one)
  -f, --follow           Stream new output
  -h, --help             help for logs
      --index int        Job index (Indexed Jobs) (default -1)
      --process string   A Process of a Sandbox or Workspace, by sequence number
      --rank string      Gang member rank (default 0)
      --since duration   Only output newer than this, such as 10m
      --tail int         Lines of backlog to show (default -1)
      --timestamps       Prefix each line with its time
```

### Options inherited from parent commands

```plaintext
      --context string   Context from the config file to use
      --org string       Organization (selects the context for that org)
  -p, --project string   Project to work in
  -v, --verbose          Log each API request (never credentials)
```

### SEE ALSO

* [nodus](https://nodus-platform-site.pages.dev/docs/reference/cli/nodus/) - Run compute Jobs on Nodus

### Tested examples

These invocations run in CI against the CLI’s fake API.

Terminal window

```sh
nodus logs job/train
nodus logs job/train --rank 1
nodus logs job/train --all-ranks
nodus logs job/shards --all-indexes
```
