lbcli create logs sources

Creates a new log source.

Log streaming is currently in tech preview.

Synopsis

Creates a new log source. Exactly one of --journald-id or --file-paths must be provided to specify the collection mechanism.

Log format is inferred automatically when --journald-id is used (defaults to ZAP_JSON for most Lightbits services). For file sources, you can set it explicitly with --log-format.

Supported log formats: zap-json, logfmt, duroslight-text, gftl-text, unstructured.

Supported min levels: debug, info, warn, error.

Bash
Copy

Examples

Bash
Copy
FlagShortTypeDefaultDescription
--help-hboolHelp for source.
--enabledbooltrueEnable this source immediately (default: true).
--file-pathsstringSliceComma-separated list of file glob patterns for file-based collection; e.g. /var/log/app.log,/var/log/app-*.log.
--journald-idstringJournald syslog identifier (unit name) to collect from; e.g., node-manager.
--labelstringArrayLabel to attach to log entries, in key=value format (repeatable, file sources only).
--log-formatstringLog format hint: zap-json, logfmt, duroslight-text, gftl-text, unstructured (auto-detected when empty).
--min-levelstringMinimum log severity to forward: debug, info, warn, error (default: all).
--namestringName of the log source (required).
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard