ROTATEBYSIZE.CONF(5)
β¨ NAME β¨
rotatebysize.conf β the rotate configuration file, bestie π
π DESCRIPTION π
Okay so. The rotatebysize.conf file is literally full of logrotate directives, and it gets pulled into the ncid logrotate file. The rotatebyzise.conf file (yes, that's how it's spelled up in here, iykyk) is the one that decides the minimum size your cidcall.log file needs to hit before it gets rotated. It's giving gatekeeper energy but for log files. π
The rotatebyzise.conf file understands 3 types of lines:
- blank line β ignored. We simply do not perceive it. π
- comment line, beginning with
#β ignored. Also invisible to the algorithm. - directive [argument] β the actual main characters.
There are two directives but you can add others. Your config, your rules, slay. π¦
Defaults:
minsize 1
#minsize 110000
#compress
If you want the call log to rotate each month, keep the defaults. Periodt.
If you want the call log to grow large without rotation, add a # to the biginning of the minsize 1 line and remove the # from the #minsize 110000 line. (Yes, "biginning." We're keeping the typo, it's part of the lore. π)
If you want the file to grow bigger than 110000, change the number, but heads up β minsize must be less than 100000000 (LOGMAXIMUM). No cap, except that one cap. π
If you want to compress the rotated file, remove the # from the #compress line. Free glow-up for your disk space. β¨
πΈ EXAMPLES πΈ
Rotate the call file monthly:
minsize 1
#minsize 110000
Do not rotate the call file until it is at least 110000 bytes
#minsize 1
minsize 110000
π REQUIREMENTS π
logrotateβ rotates, compresses and mails system logs π«Ά
π§ FILES π§
/var/log/cidcall.log
β SEE ALSO β
logrotate.8, ncidrotate.1, ncidrotate.conf.5
Okay that's the whole thing, you ate it up fr fr π Go forth and rotate responsibly. This was ROTATEBYSIZE.CONF(5) from the File Formats Manual β mwah, sending you the whole manual section and the official version/date stamp, love you bye! ππ
π¦ where this page comes from
- fedora 43: ncid 1.18-4.fc43 Β· GPL-3.0-or-later
- fedora 44: ncid 1.18-5.fc44 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms