API for managing log collection targets, sources, and TLS bundles.
Observability Service
Log Collector Operations
List log collectors.
Return the last-known heartbeat and pipeline health state of all log collectors (Alloy instances). Note that log streaming is a tech preview.
A successful response.
Unauthorized: authentication failed.
Permission denied.
Internal Lightbits error.
An unexpected error response.
Get log collector.
Return the last-known heartbeat and pipeline health state for a single log collector (Alloy instance). Note that log streaming is a tech preview.
A successful response.
Unauthorized: authentication failed.
Permission denied.
A log collector with the provided ID has not been seen on this cluster.
Internal Lightbits error.
An unexpected error response.
List log sources.
Return all configured log collection sources. Note that log streaming is a tech preview.
A successful response.
Unauthorized: authentication failed.
Permission denied.
Internal Lightbits error.
An unexpected error response.
Create log source.
Register a new log collection point. A source can be a systemd journal unit (journald) or a set of file paths. The log_format field determines how raw log lines are parsed before forwarding; for well-known service names a default format is applied automatically if log_format is omitted. Note that log streaming is a tech preview.
A successful response.
An invalid argument was provided: source.name is missing, no journald or file config was supplied, or log_format is unknown and no default is registered for this source.
Unauthorized: authentication failed.
Permission denied.
A log source with the provided name already exists.
Internal Lightbits error.
An unexpected error response.
Get log source.
Retrieve the configuration of a log source by name. Note that log streaming is a tech preview.
A successful response.
Unauthorized: authentication failed.
Permission denied.
A log source with the provided name does not exist.
Internal Lightbits error.
An unexpected error response.
Delete log source.
Remove a log source by name. If the source does not exist the call succeeds and the response field deleted is false. Note that log streaming is a tech preview.
A successful response.
Unauthorized: authentication failed.
Permission denied.
Internal Lightbits error.
An unexpected error response.
Update log source.
Modify an existing log source. All fields provided in the request replace the existing values for those fields. Note that log streaming is a tech preview.
A successful response.
An invalid argument was provided: source.name is missing, no journald or file config was supplied, or log_format is unknown.
Unauthorized: authentication failed.
Permission denied.
A log source with the provided name does not exist.
Internal Lightbits error.
An unexpected error response.
List log forwarding targets.
Return all configured log forwarding targets. Note that log streaming is a tech preview.
A successful response.
Unauthorized: authentication failed.
Permission denied.
Internal Lightbits error.
An unexpected error response.
Create log forwarding target.
Register a new log forwarding destination. A target can be a Loki endpoint or an rsyslog receiver. Once created, enable it and create log sources to start forwarding. Note that log streaming is a tech preview.
A successful response.
An invalid argument was provided: target.name is missing, target.type is unspecified, the rsyslog timeout is not a valid duration, or the referenced TLS bundle does not exist.
Unauthorized: authentication failed.
Permission denied.
A log forwarding target with the provided name already exists.
Internal Lightbits error.
An unexpected error response.
Get log forwarding target.
Retrieve the configuration of a log forwarding target by name. Note that log streaming is a tech preview.
A successful response.
Unauthorized: authentication failed.
Permission denied.
A log forwarding target with the provided name does not exist.
Internal Lightbits error.
An unexpected error response.
Delete log forwarding target.
Remove a log forwarding target by name. If the target does not exist the call succeeds and the response field deleted is false. Note that log streaming is a tech preview.
A successful response.
Unauthorized: authentication failed.
Permission denied.
Internal Lightbits error.
An unexpected error response.
Update log forwarding target.
Modify an existing log forwarding target. All fields provided in the request replace the existing values for those fields. Note that log streaming is a tech preview.
A successful response.
An invalid argument was provided: target.name is missing, target.type is unspecified, the rsyslog timeout is not a valid duration, or the referenced TLS bundle does not exist.
Unauthorized: authentication failed.
Permission denied.
A log forwarding target with the provided name does not exist.
Internal Lightbits error.
An unexpected error response.
List TLS bundles.
Return all stored TLS bundles. The key_pem field is redacted in list responses (shown as "" when a key is present); use GetTLSBundle to retrieve the full key material. Note that log streaming is a tech preview.
A successful response.
Unauthorized: authentication failed.
Permission denied.
Internal Lightbits error.
An unexpected error response.
Create TLS bundle.
Store a named set of PEM-encoded certificate material (CA, optional client cert/key) used by log forwarding targets to authenticate TLS connections. When TLS_BUNDLE_KEY is configured on api-service, key_pem is AES-256-GCM encrypted before being written to etcd. Note that log streaming is a tech preview.
A successful response.
An invalid argument was provided: bundle.name or bundle.ca_pem is missing.
Unauthorized: authentication failed.
Permission denied.
A TLS bundle with the provided name already exists.
Internal Lightbits error.
An unexpected error response.
Update TLS bundle.
Replace the certificate material of an existing TLS bundle. The bundle must already exist; use CreateTLSBundle to add a new one. All PEM fields (ca_pem, cert_pem, key_pem) are fully replaced by the values provided in this request. Note that log streaming is a tech preview.
A successful response.
An invalid argument was provided: bundle.name or bundle.ca_pem is missing.
Unauthorized: authentication failed.
Permission denied.
A TLS bundle with the provided name does not exist.
Internal Lightbits error.
An unexpected error response.
Get TLS bundle.
Retrieve a TLS bundle by name, including the decrypted key_pem if one was stored. Use ListTLSBundles to enumerate all bundles (key_pem is redacted in list responses). Note that log streaming is a tech preview.
A successful response.
Unauthorized: authentication failed.
Permission denied.
A TLS bundle with the provided name does not exist.
Internal Lightbits error.
An unexpected error response.
Delete TLS bundle.
Remove a TLS bundle by name. Deletion is refused if any log forwarding target still references the bundle; remove or update those targets first. Note that log streaming is a tech preview.
A successful response.
The TLS bundle is still referenced by one or more log forwarding targets.
Unauthorized: authentication failed.
Permission denied.
Internal Lightbits error.
An unexpected error response.