# kosa8 logs

Fetch the logs of a container (-f to follow them live)

## Usage

```
kosa8 logs CONTAINER
```

## Flags

| Flag | Type | What it does | Default |
|---|---|---|---|
| `--follow, -f` | bool | keep printing new output until the container exits |  |
| `--tail, -n` | string | only the last N lines | `all` |
| `--timestamps, -t` | bool | prefix each line with its time |  |

## Example

```
  kosa8 logs web
  kosa8 logs -f web             # follow until it exits (Ctrl-C to stop)
  kosa8 logs --tail 50 -t web   # the last 50 lines, with timestamps
```

---
Source: https://docs.kosa8.com/reference/logs/
