Hi everyone
I’ve been working in a Linux flight recorder tool for the past few months and I wanted to share it with this awesome Linux community with the hope to spark your curiosity and for some feedback.
The tool is called clifr (command line flight recorder).
It is a tool that continuously records system activity, counters, events, open files descriptors, etc. and then it allows the administrator to reconstruct the output of popular diagnostics commands from any point in the past.
It can accurately piece together the output of command such as top, htop, atop, iotop, ps, ss, netstat, sar, vmstat, df, mount, dmesg and many more (more than 50).
Notice that you do not need to have any of these tools installed in the system as clifr does not execute anything; rather it synthesizes the output from the recorded data.
It is very lightweight and its purpose is to allow the user to see the state of the system before an event occurred (like a crash, an oom kill or an intrusion, for example). However, it has many other applications too.
It comes with a terminal user interface. However, it currently covers only a limited number of commands, but it is still very powerful.
It is very efficient and lightweight: On a regular desktop with around 500 processes running it will use only around 20MiB of disk space per day, 0.35% of a single CPU core and only around 90 MiB of RAM. For busy servers, benchmark information is available on the project’s page.
By default clifr only keeps records for the last 72 hrs. but this can be changed to fit your needs.
It is open-source and you can see it in action in: GitHub - jlruedab/clifr: clifr is a Linux System Flight Recorder (SFR) that continuously captures processes, connections, open files and system counters, then shows accurate ps, ss, lsof, top (and 30+ other) tools' full-output for any past moment; tamper-proof and with very low-overhead. · GitHub
Hopefully some of you may give it a try and if that is the case, I will appreciate any feedback and if clifr saved you time or helped you diagnose your system, please consider giving it a star. It helps others discover the project.
All your questions and suggestions are welcome.
Thanks.
