LOGROTATE(8)

๐Ÿ’… logrotate(8) โ€” the rotation, compression & mailing-your-logs situation โœจ

Welcome to the System Administrator's Manual bestie ๐Ÿซถ โ€” this is the page for logrotate(8), and like, honestly? It's kind of iconic. Sit down, grab a strawberry drink ๐Ÿ“, and let's get into it.


๐ŸŒธ NAME ๐ŸŒธ

logrotate โ€” rotates, compresses, and mails system logs ๐Ÿ’Œ


โœจ SYNOPSIS โœจ

logrotate [--force] [--debug] [--state file] [--skip-state-lock]
       [--wait-for-state-lock] [--verbose] [--log file] [--mail command]
       config_file [config_file2 ...]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

okay so picture this: your systems are out here generating large numbers of log files and somebody has to deal with it. That somebody is logrotate, and it's designed to make administration of those systems so much easier. ๐Ÿ’…

It handles the automatic rotation, compression, removal, and mailing of log files. And every single log file can get its own treatment โ€” handled daily, weekly, monthly, or literally whenever it grows too large. main character energy, honestly. ๐Ÿ‘‘

Normally, logrotate is run as a daily cron job. And here's the thing โ€” it will not modify a log more than once in one day, unless:

  • the criterion for that log is based on the log's size, and logrotate is being run more than once each day, or
  • you use the -f or --force option. ๐Ÿซก

You can hand it any number of config files on the command line. Later config files may override the options given in earlier files, so likeโ€ฆ the order you list them in genuinely matters. Normally you'd use a single config file that includes any other config files it needs โ€” see below for how to use the include directive to pull that off. And if you give it a directory on the command line, every file in that directory gets used as a config file. ๐Ÿ“‚

And if you give it no command line arguments at all? It'll print version and copyright information, plus a short usage summary. No logs rotated, just vibes.

โš ๏ธ If any errors occur while rotating logs, logrotate will exit with non-zero status โ€” although the state file will still be updated. so like, it fails but it does write the receipts. ๐Ÿ’€

๐Ÿ”ฅ OPTIONS ๐Ÿ”ฅ

  • -f, --force โ€” tells logrotate to force the rotation, even if it doesn't think this is necessary. Sometimes this is useful after adding new entries to a logrotate config file, or if old log files have been removed by hand โ€” because then the new files will be created, and logging will continue correctly. ๐Ÿซถ
  • -d, --debug โ€” turn on debug mode, which means no changes are made to the logs and the logrotate state file is not updated. Only debug messages are printed. It's giving "look but don't touch". ๐Ÿ™ˆ
  • -s, --state statefile โ€” tells logrotate to use an alternate state file. This is useful if logrotate is being run as a different user for various sets of log files. To prevent parallel execution, logrotate by default acquires a lock on the state file, and if it cannot be acquired, logrotate will exit with value 3. The default state file is /var/lib/misc/logrotate.status. And if /dev/null is given as the state file, then logrotate will not try to lock or write the state file. ๐ŸŽ€
  • --skip-state-lock โ€” do not lock the state file โ€” for example if locking is unsupported or prohibited. โœจ
  • --wait-for-state-lock โ€” wait until the lock on the state file is released by another logrotate process.
๐Ÿ˜ญ This option may cause logrotate to wait indefinitely. Use with caution. fr fr, be careful with this one.
  • -v, --verbose โ€” turns on verbose mode, for example to display messages during rotation. ๐Ÿ—ฃ๏ธ
  • -l, --log file โ€” tells logrotate to log verbose output into the log_file. The verbose output logged to that file is the same as when running logrotate with the -v switch. The log file is overwritten on every logrotate execution. ๐Ÿ’…
  • -m, --mail command โ€” tells logrotate which command to use when mailing logs. This command should accept the following arguments:
    1. the subject of the message given with -s subject
    2. the recipient.

The command must then read a message on standard input and mail it to the recipient. The default mail command is /bin/mail. ๐Ÿ“ฌ

  • --usage โ€” prints a short usage message. ๐Ÿฉท
  • -?, --help โ€” prints help message. ๐Ÿซถ
  • --version โ€” display version information. โญ

๐ŸŒˆ CONFIGURATION FILE ๐ŸŒˆ

logrotate reads everything about the log files it should be handling from the series of configuration files specified on the command line. Every config file can:

  • set global options โ€” local definitions override global ones, and later definitions override earlier ones ๐Ÿฅž
  • specify logfiles to rotate
๐Ÿ’ก Global options do not affect preceding include directives. Just so you know.

A simple configuration file looks like this:

# sample logrotate configuration file
compress

/var/log/messages {
    rotate 5
    weekly
    postrotate
        /usr/bin/killall -HUP syslogd
    endscript
}

"/var/log/httpd/access.log" /var/log/httpd/error.log {
    rotate 5
    mail recipient@example.org
    size 100k
    sharedscripts
    postrotate
        /usr/bin/killall -HUP httpd
    endscript
}

/var/log/news/* {
    monthly
    rotate 2
    olddir /var/log/news/old
    missingok
    sharedscripts
    postrotate
        kill -HUP $(cat /var/run/inn.pid)
    endscript
    nocompress
}

~/log/*.log {}

The first few lines set global options โ€” in the example, logs are compressed after they are rotated. And note that comments may appear anywhere in the config file as long as the first non-whitespace character on the line is a #. ๐ŸŽ€

Values are separated from directives by whitespace and/or an optional =. Numbers must be specified in a format understood by strtoul(3). (yes, that's a real function, look it up bestie)

The next section of the config file defines how to handle the log file /var/log/messages. The log will go through five weekly rotations before being removed. After the log file has been rotated (but before the old version of the log has been compressed), the command /usr/bin/killall -HUP syslogd will be executed. ๐Ÿ’…

The next section defines the parameters for both /var/log/httpd/access.log and /var/log/httpd/error.log. Each is rotated whenever it grows over 100 kilobytes in size, and the old logs files are mailed (uncompressed) to recipient@example.org after going through 5 rotations, rather than being removed. The sharedscripts means that the postrotate script will only be run once for this section, not once for each log which is rotated. Note that log file names may be enclosed in quotes (and that quotes are required if the name contains spaces). Normal shell quoting rules apply, with ', ", and \ characters supported. ๐Ÿš

The next section defines the parameters for all of the files in /var/log/news. Each file is rotated on a monthly basis. ๐ŸŒ™

The last section uses tilde expansion to rotate log files in the home directory of the current user. This is only available if your glob library supports tilde expansion โ€” and GNU glob does support this. โœจ

โš ๏ธ Please use wildcards with caution. If you specify *, logrotate will rotate all files, including previously rotated ones. ๐Ÿ˜ญ A way around this is to use the olddir directive or a more exact wildcard (such as *.log). iykyk.
๐Ÿซถ Please note: by default when using systemd(1), the option ProtectSystem=full is set in the logrotate.service file. This prevents logrotate from modifying logs in /etc and /usr. lowkey important.

Here is more information on the directives which may be included in a logrotate configuration file: ๐Ÿ‘‡


๐ŸŽ€ CONFIGURATION FILE DIRECTIVES ๐ŸŽ€

These directives may be included in a logrotate configuration file:

๐Ÿ”„ Rotation

  • rotate count โ€” log files are rotated count times before being removed or mailed to the address specified in a mail directive. If count is 0, old versions are removed rather than rotated. If count is -1, old logs are not removed at all โ€” except they are affected by maxage.
๐Ÿ˜ฌ use with caution, may waste performance and disk space.

Default is 0.

  • olddir directory โ€” logs are moved into directory for rotation. The directory must be on the same physical device as the log file being rotated, unless copy, copytruncate or renamecopy option is used. The directory is assumed to be relative to the directory holding the log file unless an absolute path name is specified. When this option is used, all old versions of the log end up in directory. This option may be overridden by the noolddir option. ๐Ÿ“
  • noolddir โ€” logs are rotated in the directory they normally reside in (this overrides the olddir option). ๐Ÿ 
  • su user group โ€” rotate log files set under this user and group instead of using default user/group (usually root). user specifies the user used for rotation and group specifies the group used for rotation (see the section USER AND GROUP for details). If the user/group you specify here does not have sufficient privilege to make files with the ownership you've specified in a create directive, it will cause an error. If logrotate runs with root privileges, it is recommended to use the su directive to rotate files in directories that are directly or indirectly in control of non-privileged users. ๐Ÿ”

โฐ Frequency

  • hourly โ€” log files are rotated every hour. Note that usually logrotate is configured to be run by cron daily (or by logrotate.timer when using systemd(1)). You have to change this configuration and run logrotate hourly to be able to really rotate logs hourly. โณ
  • daily โ€” log files are rotated every day. โ˜€๏ธ
  • weekly [weekday] โ€” log files are rotated once each weekday, or if the date is advanced by at least 7 days since the last rotation (while ignoring the exact time). The weekday interpretation is following: 0 means Sunday, 1 means Monday, ..., 6 means Saturday; the special value 7 means each 7 days, irrespectively of weekday. Defaults to 0 if the weekday argument is omitted. ๐Ÿ—“๏ธ
  • monthly โ€” log files are rotated the first time logrotate is run in a month (this is normally on the first day of the month). ๐ŸŒ™
  • yearly โ€” log files are rotated if the current year is not the same as the last rotation. ๐ŸŽ†
  • size size โ€” log files are rotated only if they grow bigger than size bytes. If size is followed by k, the size is assumed to be in kilobytes. If M is used, the size is in megabytes, and if G is used, the size is in gigabytes. So size 100, size 100k, size 100M and size 100G are all valid. ๐Ÿ’…
โš ๏ธ This option is mutually exclusive with the time interval options, and it causes log files to be rotated without regard for the last rotation time, if specified after the time criteria โ€” the last specified option takes the precedence. pick a lane bestie.

๐Ÿ” File selection

  • missingok โ€” if the log file is missing, go on to the next one without issuing an error message. See also nomissingok. ๐Ÿซถ
  • nomissingok โ€” if a log file does not exist, issue an error. This is the default. ๐Ÿ˜ญ
  • ignoreduplicates โ€” bestie, when the same log file shows up again later, just ignore it. Don't rotate it twice. ๐Ÿ’…
  • ifempty โ€” rotate the log file even if it's totally empty, which overrides the notifempty option (ifempty is the default, so this is the vibe you get for free โœจ).
  • notifempty โ€” nope, do NOT rotate the log if it's empty (this overrides the ifempty option). Empty file, no rotation, periodt.
  • minage count โ€” skip logs that are younger than count days old. Like, they're literally babies, leave them alone ๐Ÿผ
  • maxage count โ€” delete rotated logs that are older than count days. Quick deets: the age is only checked if the logfile is actually going to be rotated. Also rotate -1 does not hinder removal (iconic, honestly). And the files get mailed to the configured address if maillast and mail are both configured. ๐Ÿ“ฌ
  • minsize size โ€” logs get rotated once they grow bigger than size bytes, but never before the additionally specified time interval (daily, weekly, monthly, or yearly) hits. The related size option is similar except it's mutually exclusive with the time interval options, and it causes log files to be rotated without regard for the last rotation time if it's specified after the time criteria (the last specified option takes the precedence). When minsize is used, both the size and timestamp of a log file are considered. โฐ๐Ÿ“
  • maxsize size โ€” logs get rotated once they grow bigger than size bytes, even before the additionally specified time interval (daily, weekly, monthly, or yearly) arrives. The related size option is similar except it's mutually exclusive with the time interval options, and it causes log files to be rotated without regard for the last rotation time if specified after the time criteria (the last specified option takes the precedence). When maxsize is used, both the size and timestamp of a log file are considered. ๐Ÿ”ฅ
  • tabooext [+] list โ€” this changes the current taboo extension list (peep the include directive for the info on taboo extensions). If a + comes before the list of extensions, the current taboo extension list is augmented โ€” otherwise it's fully replaced. At startup, the taboo extension list is this whole chaotic guest list: ,v, .bak, .cfsaved, .disabled, .dpkg-bak, .dpkg-del, .dpkg-dist, .dpkg-new, .dpkg-old, .dpkg-tmp, .new, .old, .orig, .rhn-cfg-tmp-*, .rpmnew, .rpmorig, .rpmsave, .swp, .ucf-dist, .ucf-new, .ucf-old, ~ โ€” not one of these got an invite to be rotated ๐Ÿšซ๐Ÿ’Œ
  • taboopat [+] list โ€” changes the current taboo glob pattern list (again, see the include directive for the info on taboo extensions and patterns). If a + precedes the list of patterns, the current taboo pattern list gets augmented; otherwise it's replaced. At startup, the taboo pattern list is empty. Nothing there. A whole empty group chat. ๐Ÿ™ˆ

๐Ÿ“ Files and Folders (the whole filing system era)

  • create mode owner group, create owner group โ€” right after rotation (before the postrotate script runs, so like, immediately), the log file is created again with the same name as the log file just rotated. mode sets the mode for the log file in octal (same as chmod(2)), owner sets the user who will own the log file, and group sets the group the log file will belong to (see the section USER AND GROUP for the deets). Any of the log file attributes can be omitted, and in that case those attributes for the new file just use the same values as the original log file. You can turn this whole thing off with the nocreate option. ๐Ÿซถ
  • nocreate โ€” no new log files are created (this overrides the create option). Simple as that.
  • createolddir mode [owner [group]], createolddir [owner [group]] โ€” if the directory specified by the olddir directive doesn't exist, it gets created. mode sets the mode for the olddir directory in octal (same as chmod(2)), owner sets the user who will own the olddir directory, and group sets the group the olddir directory will belong to (see the section USER AND GROUP for details). If mode isn't specified, 0755 is assumed. This option can be disabled with the nocreateolddir option. ๐Ÿ› ๏ธ
  • nocreateolddir โ€” the olddir directory is not created by logrotate when it doesn't exist. If it's not there, it's not there, and logrotate is not playing architect today.
  • copy โ€” make a copy of the log file, but don't change the original at all. Zero changes. Untouched. This one's great if you wanna make a snapshot of the current log file, or when some other utility needs to truncate or parse the file. When this option is used, the create option has no effect, since the old log file stays right where it is. Bonus: the copy option allows storing rotated log files on different devices using the olddir directive. ๐Ÿ“ธ
  • nocopy โ€” don't copy the original log file, and leave it in place (this overrides the copy option).
  • copytruncate โ€” truncate the original log file to zero size in place after making a copy, instead of moving the old log file and optionally creating a new one. Use this when some program can't be told to close its logfile and would otherwise keep writing (appending) to the previous log file forever โ€” awkward ๐Ÿ˜ญ. Heads up though: there's a very small time slice between copying the file and truncating it, so some logging data might get lost. Fr fr, might lose a crumb. When this option is used, the create option has no effect, since the old log file stays in place. The copytruncate option allows storing rotated log files on different devices using the olddir directive. Also, copytruncate implies norenamecopy. โœ‚๏ธ
  • nocopytruncate โ€” don't truncate the original log file in place after creating a copy (this overrides the copytruncate option).
  • renamecopy โ€” the log file gets renamed to a temporary filename in the same directory by adding a .tmp extension to it. After that, the postrotate script runs and the log file is copied from the temporary filename to the final filename. In the end, the temporary filename is removed. The renamecopy option allows storing rotated log files on different devices using the olddir directive. And renamecopy implies nocopytruncate. ๐Ÿ”„
  • norenamecopy โ€” don't rename and copy the original log file (this overrides the renamecopy option).
  • shred โ€” delete log files using shred -u instead of unlink(). This should ensure that logs are not readable after their scheduled deletion โ€” very main character security energy ๐Ÿ”. It's off by default. See also noshred.
  • noshred โ€” don't use shred when deleting old log files. See also shred.
  • shredcycles count โ€” asks GNU shred(1) to overwrite log files count times before deletion. Without this option, shred's default gets used. ๐Ÿ”
  • allowhardlink โ€” rotate files with multiple hard links; this is off by default. โš ๏ธ Careful bestie: the target file might get emptied, e.g. with shred or copytruncate. Use with caution, especially when the log files are rotated as root. Like, this is the "don't run with scissors" of directives.
  • noallowhardlink โ€” don't rotate files with multiple hard links. See also allowhardlink.

๐Ÿ—œ๏ธ Compression (smaller files, cuter logs)

  • compress โ€” old versions of log files are compressed with gzip(1) by default. See also nocompress. ๐Ÿ’–
  • nocompress โ€” old versions of log files are not compressed. See also compress.
  • compresscmd โ€” specifies which command to use to compress log files. The default is gzip(1). See also compress.
  • uncompresscmd โ€” specifies which command to use to uncompress log files. The default is gunzip(1).
  • compressext โ€” specifies which extension to use on compressed logfiles, if compression is enabled. The default follows that of the configured compression command.
  • compressoptions โ€” command line options may be passed to the compression program, if one is in use. The default, for gzip(1), is "-6" (biased towards high compression at the expense of speed). If you use a different compression command, you may need to change the compressoptions to match. ๐ŸŽ๏ธ
  • delaycompress โ€” postpone compression of the previous log file to the next rotation cycle. This only has effect when used in combination with compress. It's the move when some program can't be told to close its logfile and thus might keep writing to the previous log file for some time. โณ
  • nodelaycompress โ€” don't postpone compression of the previous log file to the next rotation cycle (this overrides the delaycompress option).

๐Ÿท๏ธ Filenames (naming things is literally an art form)

  • extension ext โ€” log files with the ext extension can keep it after rotation. If compression is used, the compression extension (normally .gz) appears after ext. Example: you have a logfile named mylog.foo and you want to rotate it to mylog.1.foo.gz instead of mylog.foo.1.gz. Slay, keeping the whole name together ๐Ÿ’…
  • addextension ext โ€” log files are given the final extension ext after rotation. If the original file already ends with ext, the extension isn't duplicated, but merely moved to the end โ€” that is, both filename and filenameext would get rotated to filename.1ext. If compression is used, the compression extension (normally .gz) appears after ext. ๐ŸŽ€
  • start count โ€” this is the number to use as the base for rotation. For example, if you specify 0, the logs will be created with a .0 extension as they're rotated from the original log files. If you specify 9, log files will be created with a .9, skipping 0โ€“8. Files will still be rotated the number of times specified with the rotate directive. ๐Ÿ”ข
  • dateext โ€” archive old versions of log files adding a date extension like YYYYMMDD instead of simply adding a number. The extension may be configured using the dateformat and dateyesterday options. Obsessed with a timestamped glow-up ๐Ÿ“…โœจ
  • nodateext โ€” do not archive old versions of log files with a date extension (this overrides the dateext option).
  • dateformat format_string โ€” sets the extension for dateext using strftime(3)-ish notation. Only %Y %m %d %H %M %S %V %s and %z are allowed, bestie, that's the whole guest list ๐Ÿ’…. Default is -%Y%m%d, except for hourly, which rocks -%Y%m%d%H as its default. Lowkey important: the character separating the log name from the extension is part of the dateformat string itself. Also your system clock has to be set past Sep 9th 2001 for %s to work correctly โ€” no time-traveling, gorl ๐Ÿ•ฐ๏ธ. And the datestamps this format generates must be lexically sortable (year first, then month, then day โ€” like, 2001/12/01 is ok, but 01/12/2001 is not, because 01/11/2002 would sort lower while it's actually later). Why do we care? Because with the rotate option, logrotate sorts all the rotated filenames to figure out which logfiles are older and should get yeeted ๐Ÿ—‘๏ธ.
  • dateyesterday โ€” uses yesterday's date instead of today's when building the dateext extension, so the rotated log file's name has the same date as the timestamps inside it. Matchy-matchy, we love consistency โœจ.
  • datehourago โ€” uses the hour ago instead of the current date to build the dateext extension, so the rotated log file has an hour in its name that matches the timestamps within it. Super useful with rotate hourly ๐Ÿ•.

๐Ÿ’Œ Mail

  • mail address โ€” when a log gets rotated out of existence, it gets mailed to address. If you don't want mail for a particular log, use the nomail directive instead.
  • nomail โ€” do not mail old log files to any address. Silence is golden ๐Ÿคซ.
  • mailfirst โ€” when using the mail command, mail the just-rotated file instead of the about-to-expire one.
  • maillast โ€” when using the mail command, mail the about-to-expire file instead of the just-rotated one (this is the default, fyi).

๐Ÿ“‚ Additional config files

  • include file_or_directory โ€” reads the file you pass as an argument as if it was included inline right where the include directive sits. If you hand it a directory, most of the files in that directory get read in alphabetic order before processing of the including file continues ๐Ÿ“–. The only files that get ignored are ones that aren't regular files (think directories and named pipes) and files whose names end with one of the taboo extensions or patterns, as specified by the tabooext or taboopat directives respectively. The given path may start with ~/ to make it relative to the home directory of the executing user ๐Ÿ . And for security reasons, configuration files must not be group-writable nor world-writable โ€” no cap, keep those perms locked down ๐Ÿ”’.

๐ŸŽฌ Scripts

  • sharedscripts โ€” normally, prerotate and postrotate scripts run for each log that's rotated, and the absolute path to the log file gets passed as the first argument to the script. That means a single script may run multiple times for log file entries that match multiple files (like the /var/log/news/* example). If sharedscripts is specified, the scripts only run once, no matter how many logs match the wildcarded pattern, and the whole pattern is passed to them ๐Ÿซถ. However โ€” if none of the logs in the pattern need rotating, the scripts won't run at all. And if the scripts exit with error (or any log fails to rotate), the remaining actions won't be executed for any logs. This option overrides the nosharedscripts option.
  • nosharedscripts โ€” runs prerotate and postrotate scripts for every log file that's rotated (this is the default, and it overrides the sharedscripts option). The absolute path to the log file is passed as the first argument to the script. For the postrotate script, the absolute path to the final rotated log file is passed as the second argument. If the scripts exit with error, the remaining actions won't be executed for the affected log only ๐Ÿ™ˆ.
  • firstaction script endscript โ€” the script runs once before all log files matching the wildcarded pattern are rotated, before the prerotate script runs, and only if at least one log will actually be rotated. These directives may only appear inside a log file definition. The whole pattern is passed to the script as its first argument. If the script exits with an error, no further processing is done ๐Ÿ›‘. See also lastaction and the SCRIPTS section.
  • lastaction script endscript โ€” the script runs once after all log files matching the wildcarded pattern are rotated, after the postrotate script runs, and only if at least one log is rotated. These directives may only appear inside a log file definition. The whole pattern is passed to the script as its first argument. If the script exits with an error, just an error message is shown (since this is the last action). See also firstaction and the SCRIPTS section.
  • prerotate script endscript โ€” the script runs before the log file and its old logs are rotated, and only if the log will actually be rotated. These directives may only appear inside a log file definition. Normally, the absolute path to the log file is passed as the first argument to the script. If sharedscripts is specified, the whole pattern is passed to the script. See also postrotate and the SCRIPTS section. See sharedscripts and nosharedscripts for error handling.
  • postrotate script endscript โ€” the script runs after the log file is rotated and before the log file is being compressed (timing is everything, bestie โฑ๏ธ). These directives may only appear inside a log file definition. Normally, the absolute path to the log file is passed as the first argument to the script and the absolute path to the final rotated log file is passed as the second argument to the script. If sharedscripts is specified, the whole pattern is passed as the first argument to the script, and the second argument is omitted. See also prerotate and the SCRIPTS section. See sharedscripts and nosharedscripts for error handling.
  • preremove script endscript โ€” the script runs once, just before removal of a log file. logrotate passes the name of the file that's soon to be removed as the first argument to the script. See also firstaction and the SCRIPTS section. RIP little log ๐Ÿชฆ.

๐Ÿ“œ SCRIPTS

The lines between the starting keyword (e.g. prerotate) and endscript โ€” both of which must appear on lines by themselves โ€” are executed (using /bin/sh). The script inherits some traits from the logrotate process, including stderr, stdout, the current directory, the environment, and the umask ๐Ÿ‘‘. Scripts are run as the invoking user and group, irrespective of any su directive. If the --log flag was specified, file descriptor 3 is the log file. The current working directory is unspecified (so like, don't assume, gorl).

๐Ÿ‘ค USER AND GROUP

User and group identifiers are resolved first by trying the textual representation and, in case it fails, afterwards by the numeric value. Text first, numbers as the backup plan ๐Ÿ’….

๐Ÿ—‚๏ธ FILES

  • /var/lib/misc/logrotate.status โ€” default state file.
  • /etc/logrotate.conf โ€” configuration options.

๐Ÿ‘€ SEE ALSO

chmod(2), gunzip(1), gzip(1), mail(1), shred(1), strftime(3), strtoul(3), <https://github.com/logrotate/logrotate>

๐ŸŒŸ AUTHORS

Erik Troan, Preston Brown, Jan Kaluza.

<https://github.com/logrotate/logrotate>


okay that's the whole page, you made it, I'm so proud of you ๐Ÿซถโœจ This absolutely iconic piece of documentation is version 3.22.0 of LOGROTATE(8) on Linux โ€” go forth and rotate responsibly, bestie ๐Ÿ’–๐ŸŽ€๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from