logrotate

logrotate 3.22.0

Rotates and compresses system logs

https://github.com/logrotate/logrotate
GNU General Public License v2.0 or later
main program: logrotateprograms: logrotate
Platforms (79)
powerpc-linuxs390-nonex86_64-nones390x-linuxwasm64-wasip1x86_64-uefiloongarch64-linuxarmv7l-linux
View source on NixOS/nixpkgs →

Install

Copy into your configuration

NixOS (configuration.nix)
environment.systemPackages = with pkgs; [
  logrotate
];
Ad-hoc shell
nix-shell -p logrotate
Flake (nix run)
nix run nixpkgs#logrotate