You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first public release: packages for x86_64 Linux. clifr is a working prototype: tested for days in virtual machines and on one desktop, not yet on a production server. Please try it on machines where an incident would not hurt, and report what you find.
What it is
clifr (command line flight recorder) is a flight recorder for Linux servers. clifrd records, all the time, which processes existed and which started and exited (even for a few milliseconds, through eBPF). It also records every TCP connection and who owned it, open files, mounts, routes, kernel messages and the system-wide counters. Everything goes into Parquet files in /var/lib/clifr, kept 72 hours by default.
clifr later rebuilds the output of 35 familiar tools (ps, top, ss, lsof, df, free, vmstat, iostat, ip, dmesg, …) as they would have looked at a past moment or over a range. It adds 6 commands of its own (events, life, oom, mounts, containers, pstore):
It never runs the command: it reads the recording, on the recorded host or anywhere else from a bundle.
Downloads
File
What
clifrd_0.1.0_amd64.deb, clifrd-0.1.0-1.x86_64.rpm
the recorder: a static Go binary, the systemd unit, the sos plugin
clifr_0.1.0_amd64.deb, clifr-0.1.0-1.x86_64.rpm
the query tool (needs glibc 2.28 or later)
SHA256SUMS, SHA256SUMS.asc
checksums, and their signature
Check the download before installing:
gpg --import KEYS # once: the release key, from the repository
gpg --verify SHA256SUMS.asc SHA256SUMS # must say "Good signature"
sha256sum -c --ignore-missing SHA256SUMS
The release key's fingerprint is 2AD0 6804 EA2D 2396 1971 79AC 6336 C307 D721 2C5F.
Install
sudo apt install ./clifrd_0.1.0_amd64.deb ./clifr_0.1.0_amd64.deb # Debian, Ubuntu: starts the service
sudo dnf install ./clifrd-0.1.0-1.x86_64.rpm ./clifr-0.1.0-1.x86_64.rpm # RHEL, Rocky, Alma
sudo systemctl enable --now clifrd # RPM: not started by itself
sudo usermod -aG clifr "$USER"# optional: query without sudo
Then sudo clifrd doctor tells what the machine supports, and clifr info, after the first 5 minutes, what was recorded. The installation guide covers requirements, RHEL 8's eBPF privileges, upgrades and removal. The user guide has 13 use cases (an OOM kill, a crash, who connected to a database, …), configuration and the architecture.
Tested on
Distribution
Kernel
How
Ubuntu 26.04
7.0
the development desktop, bare metal: daily use, a 7-day soak, the benchmarks
Ubuntu 22.04
5.15
KVM virtual machine
Rocky Linux 8.10
4.18 (cgroup v1)
KVM virtual machine, SELinux enforcing
AlmaLinux 9.8
5.14
KVM virtual machine, SELinux enforcing
In each virtual machine the packages pass the installed-service checks, eBPF in all three program modes, the end-to-end test, the ground-truth test (43 of 43 checks), the network features and the sos plugin. The kernel needs BTF (/sys/kernel/btf/vmlinux). Without it clifrd falls back to the process connector and to sampling TCP connections every 30 seconds.
What it costs
Desktop (Ubuntu 26.04)
Mixed server load (3 VMs, 4 days)
Busy-server benchmark
CPU
0.35% of one core
0.53–0.64% of one core
1.9% of one core
Memory (RSS)
about 88 MiB
79–117 MiB on average, 137 MiB at most
about 290 MiB on average, 335 MiB at most
Disk
about 20 MiB a day
101–106 MiB a day
capped at 2 GB
The busy-server benchmark is 80,000 PostgreSQL transactions a second: there clifr added about 1 µs (1–2%) of latency. The service runs with limits: low CPU weight, at most half a core, at most 768 MiB, at most 2 GB of data.
The mixed-load soak (2026-11-13 to 17) ran PostgreSQL, nginx, cron-like bursts and memory spikes in Rocky 8, Alma 9 and Ubuntu 22.04. The host interrupted it once for about 6 hours, and clifrd recovered from that unclean stop by itself. Each VM recorded about 5.6 million processes and 7.2 million TCP connections:
no restarts, skipped samples or dropped events;
retention deleted the oldest hours on time;
clifr verify passed all 68 checkpoints in each VM against the real tools' output.
Highlights
41 commands rebuilt for a moment or a range, with the options of the real tools. Output matches what the recorded distribution's tool versions print (procps, util-linux, iproute2, sysstat, …).
Events, not only samples: process starts and exits, TCP state changes, OOM kills, mounts and kernel messages arrive through eBPF as they happen. An event budget and memory guards keep a flood from taking clifrd down.
Bundles and sos report: clifrd bundle packs a window of the recording into one tar file. The sos plugin adds it to sos report, and clifr --data-dir FILE.tar reads it on another machine.
Integrity:
every data file's SHA-256 is logged when written, and clifr verify --integrity checks the recording or a bundle;
writes are crash-safe, damaged files are skipped with a warning, and a full disk is handled;
a crash shows as crash in clifr last reboot.
Forward-secure sealing (optional, clifrd seal-setup): an HMAC chain whose key evolves after every flush. Someone who becomes root later cannot change, remove or reorder what was sealed before without clifr verify --integrity --seal-key KEY reporting it. The verification key is printed once and never stored on the host. See docs/sealing.md.
Kernel crash records (clifr pstore): after a panic, the kernel's own last messages, saved in UEFI variables or ramoops, are stored at the next boot. RHEL needs one or two boot options for this; see the user guide.
Opt-in network features, off by default (a default install opens no port and makes no connection):
--metrics: Prometheus metrics in Node Exporter's format;
--serve: remote queries with clifr --host. Every request needs a token, and TLS is required except on loopback.
--redact masks secrets in command lines before they are stored.
Known limitations
The last minutes are not queryable until the next flush, every 5 minutes. A crash or power loss loses up to that much.
Open files are sampled (every 2 minutes) and kept from their second sighting: a briefly opened file is missed.
Events can be lost when a user forks, execs or connects faster than clifrd drains its buffers. Losses are counted, and range queries say so.
One machine for the benchmarks, synthetic loads, and no production server yet. arm64 builds but has never run.
Not a security audit system: no file reads or writes are recorded, and root can stop clifrd. Sealing makes changes to what was already recorded detectable, not prevented.
The recording is sensitive: it holds command lines (which can contain passwords) and connection endpoints. It is readable by root and the clifr group. Use --redact, and add only trusted administrators to the group.
AGPL-3.0-only. The eBPF programs are GPL-2.0-only OR BSD-2-Clause, and the sos plugin is GPL-2.0-only. Contributions are signed off under the DCO (CONTRIBUTING.md).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
The first public release: packages for x86_64 Linux. clifr is a working prototype: tested for days in virtual machines and on one desktop, not yet on a production server. Please try it on machines where an incident would not hurt, and report what you find.
What it is
clifr (command line flight recorder) is a flight recorder for Linux servers.
clifrdrecords, all the time, which processes existed and which started and exited (even for a few milliseconds, through eBPF). It also records every TCP connection and who owned it, open files, mounts, routes, kernel messages and the system-wide counters. Everything goes into Parquet files in/var/lib/clifr, kept 72 hours by default.clifrlater rebuilds the output of 35 familiar tools (ps,top,ss,lsof,df,free,vmstat,iostat,ip,dmesg, …) as they would have looked at a past moment or over a range. It adds 6 commands of its own (events,life,oom,mounts,containers,pstore):It never runs the command: it reads the recording, on the recorded host or anywhere else from a bundle.
Downloads
clifrd_0.1.0_amd64.deb,clifrd-0.1.0-1.x86_64.rpmclifr_0.1.0_amd64.deb,clifr-0.1.0-1.x86_64.rpmSHA256SUMS,SHA256SUMS.ascCheck the download before installing:
The release key's fingerprint is
2AD0 6804 EA2D 2396 1971 79AC 6336 C307 D721 2C5F.Install
Then
sudo clifrd doctortells what the machine supports, andclifr info, after the first 5 minutes, what was recorded. The installation guide covers requirements, RHEL 8's eBPF privileges, upgrades and removal. The user guide has 13 use cases (an OOM kill, a crash, who connected to a database, …), configuration and the architecture.Tested on
In each virtual machine the packages pass the installed-service checks, eBPF in all three program modes, the end-to-end test, the ground-truth test (43 of 43 checks), the network features and the sos plugin. The kernel needs BTF (
/sys/kernel/btf/vmlinux). Without it clifrd falls back to the process connector and to sampling TCP connections every 30 seconds.What it costs
The busy-server benchmark is 80,000 PostgreSQL transactions a second: there clifr added about 1 µs (1–2%) of latency. The service runs with limits: low CPU weight, at most half a core, at most 768 MiB, at most 2 GB of data.
The mixed-load soak (2026-11-13 to 17) ran PostgreSQL, nginx, cron-like bursts and memory spikes in Rocky 8, Alma 9 and Ubuntu 22.04. The host interrupted it once for about 6 hours, and clifrd recovered from that unclean stop by itself. Each VM recorded about 5.6 million processes and 7.2 million TCP connections:
clifr verifypassed all 68 checkpoints in each VM against the real tools' output.Highlights
clifrd bundlepacks a window of the recording into one tar file. The sos plugin adds it tosos report, andclifr --data-dir FILE.tarreads it on another machine.clifr verify --integritychecks the recording or a bundle;crashinclifr last reboot.clifrd seal-setup): an HMAC chain whose key evolves after every flush. Someone who becomes root later cannot change, remove or reorder what was sealed before withoutclifr verify --integrity --seal-key KEYreporting it. The verification key is printed once and never stored on the host. See docs/sealing.md.clifr pstore): after a panic, the kernel's own last messages, saved in UEFI variables or ramoops, are stored at the next boot. RHEL needs one or two boot options for this; see the user guide.--metrics: Prometheus metrics in Node Exporter's format;--serve: remote queries withclifr --host. Every request needs a token, and TLS is required except on loopback.--redactmasks secrets in command lines before they are stored.Known limitations
clifrgroup. Use--redact, and add only trusted administrators to the group.The full list is in the README's Limitations.
License
AGPL-3.0-only. The eBPF programs are GPL-2.0-only OR BSD-2-Clause, and the sos plugin is GPL-2.0-only. Contributions are signed off under the DCO (CONTRIBUTING.md).
This discussion was created from the release clifr 0.1.0 (pre-release).
All reactions