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

# sazabi log-streams

> Command reference for sazabi log-streams.

`sazabi log-streams` — Manage log streams. Subcommands: `list`, `volume-stats`, `get`, `create`, `enable`, `disable`, `reassign`, `update`, `rotate-secret`, `remove-secret`, `delete`.

## `sazabi log-streams`

Manage log streams

```txt theme={"system"}
sazabi log-streams <subcommand>
```

```bash theme={"system"}
sazabi log-streams list --log-source-id <id>  # List log streams
sazabi log-streams get <id>  # Log stream detail and endpoint
sazabi log-streams volume-stats --log-source-id <id>  # Intake volume per log stream
sazabi log-streams reassign <id> --to-log-source-id <id>  # Move a log stream
sazabi log-streams update <id> --verify-signatures github --generate-secret  # Verify webhooks
sazabi log-streams delete <id>  # Delete a log stream
```

### `sazabi log-streams list`

List log streams for a log source

```txt theme={"system"}
sazabi log-streams list [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--log-source-id` | string | No | Log source ID (required) |

```bash theme={"system"}
sazabi log-streams list --log-source-id <id>  # List log streams
```

### `sazabi log-streams volume-stats`

Show intake volume for each log stream of a log source

Shows each log stream's bytes, log count and bytes per hour over --since or --from/--to (default: the last hour), and the last time it received a line, which can be before the window. A 0 can mean the stream wasn't measured; it doesn't prove nothing arrived.

\--json prints the window read (startDate, endDate) and the stats as the API returns them.

```txt theme={"system"}
sazabi log-streams volume-stats [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--log-source-id` | string | No | Log source ID (required) |
| `--since` | string | No | Relative window ending now, in whole minutes, e.g. 30m, 6h, 7d (default: 1h) |
| `--from` | string | No | Absolute window start, ISO-8601 (with --to) |
| `--to` | string | No | Absolute window end, ISO-8601 (with --from) |

```bash theme={"system"}
sazabi log-streams volume-stats --log-source-id <id>  # Intake volume over the last hour
sazabi log-streams volume-stats --log-source-id <id> --since 24h --json  # The last day, as JSON
```

### `sazabi log-streams get`

Get one log stream

Shows the stream's provisioning status.

```txt theme={"system"}
sazabi log-streams get <stream-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

```bash theme={"system"}
sazabi log-streams get <id>  # Check log stream status
```

### `sazabi log-streams create`

Create a log stream under an account log source

```txt theme={"system"}
sazabi log-streams create [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--log-source-id` | string | No | Log source ID (required) |
| `--config` | string | No | JSON stream config |

```bash theme={"system"}
sazabi log-streams create --log-source-id <id> --config '{"foo":"bar"}'  # Create log stream
```

### `sazabi log-streams enable`

Resume ingestion for a log stream

```txt theme={"system"}
sazabi log-streams enable <stream-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

```bash theme={"system"}
sazabi log-streams enable <id>  # Resume ingestion
```

### `sazabi log-streams disable`

Pause ingestion for a log stream

```txt theme={"system"}
sazabi log-streams disable <stream-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

```bash theme={"system"}
sazabi log-streams disable <id>  # Pause ingestion
```

### `sazabi log-streams reassign`

Move a log stream to a different endpoint log source

```txt theme={"system"}
sazabi log-streams reassign <stream-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--to-log-source-id` | string | No | Target log source ID (required) |

```bash theme={"system"}
sazabi log-streams reassign <id> --to-log-source-id <id>  # Move a log stream
```

### `sazabi log-streams update`

Turn webhook signature verification on, change it, or off

With verification on, a delivery whose signature fails is answered 401 and not stored. Pass a secret with --generate-secret (GitHub, Custom HMAC) or --secret-stdin (the secret your platform shows); a new secret replaces the stream's secrets at once, so use rotate-secret to switch without rejected deliveries.

```txt theme={"system"}
sazabi log-streams update <stream-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--verify-signatures` | string | No | Verify webhook signatures with this scheme id, as the log source's docs page lists it (generic-hmac for a sender without a preset) |
| `--generate-secret` | boolean | No | Have Sazabi mint the verification secret (shown once; only for senders where you paste a secret into the platform) |
| `--secret-stdin` | boolean | No | Read the verification secret your platform shows from stdin |
| `--custom` | string | No | Custom HMAC fields as JSON, for generic-hmac, e.g. '\{"signatureHeader":"X-Signature","algorithm":"sha256","encoding":"hex"}' |
| `--no-verify-signatures` | boolean | No | Turn webhook signature verification off |

```bash theme={"system"}
sazabi log-streams update <id> --verify-signatures github --generate-secret  # Verify GitHub webhooks
pbpaste | sazabi log-streams update <id> --verify-signatures stripe --secret-stdin  # Verify Stripe webhooks
sazabi log-streams update <id> --no-verify-signatures  # Stop verifying
```

### `sazabi log-streams rotate-secret`

Rotate a log stream's webhook verification secret

```txt theme={"system"}
sazabi log-streams rotate-secret <stream-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |
| `--generate-secret` | boolean | No | Have Sazabi mint the verification secret (shown once; only for senders where you paste a secret into the platform) |
| `--secret-stdin` | boolean | No | Read the verification secret your platform shows from stdin |
| `--grace` | string | No | How long the current secret stays accepted: 1h to 7d (default 24h), or 0 for immediately |

```bash theme={"system"}
sazabi log-streams rotate-secret <id> --generate-secret  # New secret; the old one retires in 24h
pbpaste | sazabi log-streams rotate-secret <id> --secret-stdin --grace 1h
```

### `sazabi log-streams remove-secret`

Stop accepting one webhook verification secret

```txt theme={"system"}
sazabi log-streams remove-secret <stream-id> <secret-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

```bash theme={"system"}
sazabi log-streams remove-secret <id> <secret-id>  # End a rotation's grace period early
```

### `sazabi log-streams delete`

Delete a log stream

```txt theme={"system"}
sazabi log-streams delete <stream-id> [options]
```

| Flag | Type | Required | Description |
| - | - | - | - |
| `--token` | string | No | Override token (prefer SAZABI\_TOKEN; arguments are visible to other local users) |
| `--api-base-url` | string | No | Override API base URL |
| `--json` | boolean | No | Output as JSON |

```bash theme={"system"}
sazabi log-streams delete <id>  # Delete a log stream
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.