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

# logs

Get the logs for a given job.

## Usage

`komo job logs [OPTIONS] JOB_ID`

## Options

| Option           | Description                                                                                                                                                                    | Type |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---- |
| ‑w, ‑‑follow     | If this option is specified, this command will continuously output new log entries until the job finishes. Otherwise, this command will output the current logs and then exit. | flag |
| ‑i, ‑‑node-index | The index of the node to get logs from. Defaults to 0.                                                                                                                         | int  |

## Examples

Get the logs for job `abcdef123456`

```bash theme={null}
komo job logs abcdef123456
```

Get the logs for the second node of job `abcdef123456`

```bash theme={null}
komo job logs -i 1 abcdef123456
```

Get the logs for job `abcdef123456` and keep outputting logs from the job as they're generated until the job finishes

```bash theme={null}
komo job logs -f abcdef123456
```
