NAME
ocifbsd-logd —
ocifbsd log aggregation and forwarding
daemon
SYNOPSIS
ocifbsd-logd |
[-f] [-c
config_file] [-l
log_level] |
DESCRIPTION
The ocifbsd-logd daemon aggregates,
stores, forwards, and alerts on log entries produced by the
ocifbsd(8) OCI runtime and
the jails it manages. It keeps the most recent entries in a bounded
in-memory ring buffer, rotates them to disk on a schedule, forwards copies
to configured external endpoints, and evaluates alert rules that may invoke
webhooks, send email, or run an administrator-defined command.
The options are:
-f- Run in the foreground. The default is to daemonize via daemon(3).
-cconfig_file- Load config_file instead of the default /etc/ocifbsd/ocifbsd.conf. The configuration controls ring-buffer size, retention windows, forwarder destinations, and alert rules.
-llog_level- Set the minimum severity captured by the daemon. Valid levels are “emerg, alert, crit, err, warning, notice, info, debug”, and “trace”.
The daemon handles SIGTERM and
SIGINT for graceful shutdown and
SIGHUP to reload the configuration file.
Subsystems
- An in-memory ring buffer (ringbuf.c) backs the query API and is the source of truth for recent entries.
- A background rotation worker (rotation_worker) writes the current ring contents to timestamped files under /var/log/ocifbsd and applies the configured retention policy.
- A forward worker (forward_worker) periodically delivers new entries to every enabled forwarder (syslog over UDP/TCP, fluentd, Elasticsearch, Splunk, or a custom HTTP webhook) using libcurl(3).
- An alert worker (alert_worker) evaluates incoming entries against the alert rule tree and fires actions when a rule's count threshold is reached within its time window.
- An event stream (event_publish, event_query) records lifecycle events for pods, containers, nodes, and cluster members and dispatches them to registered webhooks.
FILES
- /etc/ocifbsd/ocifbsd.conf
- Default configuration file.
- /var/log/ocifbsd
- Default storage path for rotated log files (“config.storage_path”).
- /var/log/ocifbsd/ocifbsd.YYYYMMDD-HHMMSS.log
- Rotated log file produced by
log_rotate.
SEE ALSO
HISTORY
The ocifbsd-logd command first appeared in
FreeBSD 16.0.
AUTHORS
The ocifbsd-logd utility was developed by
Klara, Inc. under sponsorship from