NewsCrawler.org

clifr: a lightweight flight recorder for Linux that replays past system state

clifr: a lightweight flight recorder for Linux that replays past system state
Image: Reddit

clifr (command line flight recorder) is a prototype for Linux servers that continuously records what happens on the system, so you can see what the machine looked like at any past moment. The recorder, clifrd, runs as a background service and logs processes with their CPU, memory and command line, every process start and exit even when it lasts only milliseconds, all network connections, open files, disks, mounts, routes, kernel messages and system-wide counters. It uses eBPF[1] so short-lived events are not missed, keeps the data in /var/lib/clifr for 72 hours by default, and uses about 2% of one CPU core on a busy server in the authors' tests.

The query tool, clifr, rebuilds the output of commands such as ps, top, ss, lsof, df and dmesg as it would have looked at a past time, and it never runs the command itself. It is meant for questions about events that already happened, for example what was using memory before the OOM killer[2] stopped a process, or what changed between two moments (clifr diff). It is not a security audit system, because it does not record file reads or writes and root can stop it, and it is not a monitoring system with alerts; the authors say Prometheus tells you when something happened and clifr tells you what happened.

The project is a working prototype licensed under AGPL-3.0, tested on Ubuntu 22.04 and 26.04 and on RHEL/Rocky 8 and Alma 9, and it has not yet been run on a production server. The current packages are the 0.1.0 pre-release.

Read the original github.comDiscussion

Discussion

Commenters mostly reacted briefly: one wrote "No thank you" and another called the project "Slop". One Hacker News commenter liked the idea but asked for a TUI or GUI with a timeline that replays recorded events like a video.

Sources

Published: First seen: Читать по-русски

Open as a page