ROTATEBYSIZE.CONF(5)

πŸ“¦ version 1.18, in fedora 43, fedora 44

✨ 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