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

# Log drain fields

> Every field of an app log drain with its type, requirement, visibility rule and CLI flag.

The dashboard form, the CLI flags and the API all read one field registry, served at `GET /api/v1/field-descriptors/log-drains`. Secrets are write only: they are accepted on create and update and never returned.

| Field | Type | Required | Shown when | CLI flag | Description |
| - | - | - | - | - | - |
| `type` (type) | select | yes | always | `--type` | sink type, http or syslog |
| `target` (target\_http) | string | yes | `type` is http | `--target` | HTTP URL that receives the log stream |
| `target` (target\_syslog) | string | no | `type` is syslog | none | syslog network://host:port, empty for local syslog |
| `header_name` (header\_name) | string | no | `type` is http | `--header-name` | optional HTTP header name sent with every batch, e.g. Authorization |
| `header_value` (header\_value) | secret, write only | no | `type` is http | `--header-value-file` | file holding the header value, stored encrypted and never shown again; blank keeps the stored value |
| `enabled` (enabled) | bool | no | always | none | forwarding on or paused (CLI: --disabled pauses it) |


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