# unikraft instances logs

Fetch and display instance logs.

```
unikraft instances logs <target> ... [flags]
```

## Examples

Fetch logs from an instance:

```bash
unikraft instance logs my-instance
```

Fetch the last 100 lines of logs from an instance:

```bash
unikraft instance logs my-instance --tail 100
```

Follow logs from an instance in real-time:

```bash
unikraft instance logs my-instance --follow
```

## Options

```
  -f, --follow                Follow log output.
  --prefix                    Prefix log lines with instance name. (default true)
  --tail TAIL                 Number of lines to show from the end of the logs.
```

## Options inherited from parent commands

```
  --config file               Path to the configuration file.
  --log-level level           Set the logging level. (default info)
  --log-type type             Set the log type. (default text)
  --profile name              Set the current profile.
  --telemetry                 Toggle anonymous usage analytics. (default true)
```

## See Also

* [`unikraft instances`](../instances.mdx): Manage Unikraft Cloud instances.

