lbcli create logs targets

Creates a new log forwarding target.

Log streaming is currently in tech preview.

Synopsis

Creates a new log forwarding target.

Use --type=loki for a Loki-compatible push endpoint, or --type=rsyslog for a remote syslog server.

Loki flags:

--url: Loki push URL; e.g., https://loki.example.com:3100 (required; must be a valid URL with scheme and host).

--loki-username: Basic-auth username (optional).

--loki-password: Basic-auth password (optional).

--loki-tls: Name of a TLS bundle for mutual TLS (optional).

rsyslog flags:

--endpoint: rsyslog server address as host:port or ip:port; e.g., siem.example.com:514 (required; IPv6 addresses must be in [::1]:port form).

--rsyslog-port: TCP port — Note that port must be included in --endpoint; this flag is ignored.

--rsyslog-timeout: Dial timeout; e.g., 5s (optional).

--rsyslog-debug: Enable verbose rsyslog debug logging.

--rsyslog-tls: Name of a TLS bundle for TLS transport (optional).

Bash
Copy

Examples

Bash
Copy
FlagShortTypeDefaultDescription
--help-hboolHelp for targets.
--enabledbooltrueEnable this target immediately (default: true).
--endpointstringrsyslog server address as host:port or ip:port; e.g., siem.example.com:514 (required for type=rsyslog).
--loki-passwordstringLoki basic-auth password.
--loki-tlsstringName of a TLS bundle for Loki mutual TLS.
--loki-usernamestringLoki basic-auth username.
--namestringName of the log target (required).
--rsyslog-debugboolEnable rsyslog debug mode.
--rsyslog-timeoutstringrsyslog dial timeout; e.g., 5s.
--rsyslog-tlsstringName of a TLS bundle for rsyslog TLS transport.
--typestringTarget type: loki or rsyslog (required).
--urlstringLoki push URL including scheme, e.g., https://loki.example.com:3100 (required for type=loki).
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard