Lightbits CLI Reference Guide
3.19.x
Lightbits Command Line Interface
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
lbcli update logs targets
Copy Markdown
Open in ChatGPT
Open in Claude
Updates an existing log forwarding target.
Log streaming is currently in tech preview.
Synopsis
Updates an existing log forwarding target.
Only the flags you explicitly provide are changed; all other fields keep their current values. Use --type only when switching the target type (loki ↔ rsyslog); when changing type all type-specific flags become required.
Bash
xxxxxxxxxxlbcli update logs targets [flags]Examples
Bash
xxxxxxxxxx# Disable a Loki target without touching any other fieldlbcli -J $JWT update logs targets \ --name=loki-prod \ --enabled=false # Update only the rsyslog endpointlbcli -J $JWT update logs targets \ --name=rsyslog-siem \ --endpoint=siem.example.com:6514 # Add TLS to an existing rsyslog targetlbcli -J $JWT update logs targets \ --name=rsyslog-siem \ --rsyslog-tls=rsyslog-bundle| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
| --help | -h | bool | Help for targets. | |
| --enabled | bool | true | Enable this target immediately (default: true). | |
| --endpoint | string | rsyslog server address as host:port or ip:port; e.g., siem.example.com:514 (required for type=rsyslog). | ||
| --loki-password | string | Loki basic-auth password. | ||
| --loki-tls | string | Name of a TLS bundle for Loki mutual TLS. | ||
| --loki-username | string | Loki basic-auth username. | ||
| --name | string | Name of the log target (required). | ||
| --rsyslog-debug | bool | Enable rsyslog debug mode. | ||
| --rsyslog-timeout | string | rsyslog dial timeout; e.g., 5s. | ||
| --rsyslog-tls | string | Name of a TLS bundle for rsyslog TLS transport. | ||
| --type | string | Target type: loki or rsyslog (required). | ||
| --url | string | Loki 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
Last updated on
Was this page helpful?
Next to read:
lbcli update logs tls-bundles© 2026 Lightbits Labs™
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message