Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
lbcli create logs sources
Creates a new log source.
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.
Examples
Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--help | -h | bool | Help for | |
--enabled | bool | true | Enable this source immediately (default: true). | |
--file-paths | stringSlice | Comma-separated list of file glob patterns for file-based collection; e.g. | ||
--journald-id | string | Journald syslog identifier (unit name) to collect from; e.g., node-manager. | ||
--label | stringArray | Label to attach to log entries, in key=value format (repeatable, file sources only). | ||
--log-format | string | Log format hint: zap-json, logfmt, duroslight-text, gftl-text, unstructured (auto-detected when empty). | ||
--min-level | string | Minimum log severity to forward: debug, info, warn, error (default: all). | ||
--name | string | Name of the log source (required). |
© 2026 Lightbits Labs™