--- title: "Log drain fields" description: Every field of an app log drain with its type, requirement, visibility rule and CLI flag. "og:url": "https://docs.levelrail.com/log-drain-fields" --- {/* Generated by scripts/gen-field-docs from internal/fielddesc. Do not edit by hand. */} 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) |