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

# dokrypt logs

> Stream logs from running services.

## Usage

```bash theme={null}
dokrypt logs [flags]
```

## Flags

| Flag            | Type     | Default | Description                                   |
| --------------- | -------- | ------- | --------------------------------------------- |
| `-s, --service` | `string` | —       | Stream logs from a specific service           |
| `-f, --follow`  | `bool`   | `false` | Follow mode — keep streaming new logs         |
| `--tail`        | `string` | `50`    | Number of recent lines to show                |
| `--since`       | `string` | —       | Show logs since a duration (e.g., `5m`, `1h`) |
| `--timestamps`  | `bool`   | `false` | Show timestamps on each log line              |

## Description

Retrieves and optionally streams logs from running service containers. When multiple services are running and no `--service` filter is set, logs from all services are interleaved and prefixed with the service name.

## Examples

### Show recent logs from all services

```bash theme={null}
dokrypt logs
```

### Follow logs in real-time

```bash theme={null}
dokrypt logs --follow
```

### Follow logs from a specific service

```bash theme={null}
dokrypt logs -f -s ethereum
```

### Show last 100 lines with timestamps

```bash theme={null}
dokrypt logs --tail 100 --timestamps
```

### Show logs from the last 5 minutes

```bash theme={null}
dokrypt logs --since 5m
```

### Combine flags

```bash theme={null}
dokrypt logs -f -s ipfs --tail 200 --timestamps
```
