Store Logs in RAM with LogRunner

Productivity Sauce
Storing log files in RAM reduces the number of read and write operations, which can extend the life span of an SD card (or any solid state storage device, for that matter). This trick can be useful on devices running Linux or an SD card (e.g., Raspberry Pi). While you can enable and configure logging to RAM manually, LogRunner provides a more elegant solution. When running, LogRunner creates a RAM disk and copies all log files onto it. The clever part is that the utility has a backup function that helps to keep RAM usage below a specified limit (16MB by default). LogRunner continuously monitors individual log files, and when a log reaches a certain limit (by default, 1MB), the utility compresses and saves it in the designated directory.
To install LogRunner, clone the project's GitHub repository using the git clone https://github.com/jacook/logrunner.git command, switch then to the resulting directory, and run the ./setup.py install command as root. Run then the logrunnerd -d command as root to start LogRunner as a daemon. If you wish to tweak the default settings, you can do this by editing the /etc/logrunner.conf file.
comments powered by DisqusIssue 41: Linux Shell Handbook 2021 Edition/Special Editions
Buy this issue as a PDF
News
-
Apple M1 Hardware Support to be Merged into Linux Kernel 5.13
Linux users will be able to install their favorite distribution on Appleās M1-based hardware.
-
KDE Launches the Qt 5 Patch Collection
To support and maintain a stable Qt 5 for KDE Gears and Frameworks, KDE will maintain a patch collection.
-
Linux Creator Warns Next Kernel Could be Delayed
Linus Torvalds has issued concern about the size of kernel 5.12 and possible delays for its release.
-
System76 Updates its Pangolin Laptop
System76 has released a much-anticipated AMD version of their most popular laptop, the Pangolin.
-
New Debian-Based Distribution Arrives on the Market
TelOS is a new Debian-based Linux distribution with a customized, touch-screen-ready KDE Plasma 5 desktop.
-
System76 Releases New Thelio Desktop
One of the most ardent supporters of open source hardware has released a new desktop machine for home or office.
-
Mageia 8 Now Available with Linux 5.10 LTS
The latest release of Mageia includes improved graphics support for both AMD and NVIDIA GPUs.
-
GNOME 40 Beta has been Released
Anyone looking to test the beta for the upcoming GNOME 40 release can now do so.
-
OpenMandriva Lx 4.2 has Arrived
The latest stable version of OpenMandriva has been released and offers the newest KDE desktop and ARM support.
-
Thunderbird 78 Ported to Ubuntu 20.04
The Ubuntu developers have made the decision to port the latest release of Thunderbird to the LTS version of the platform.