QSROTATE(1)
π« QSROTATE(1) β the qsrotate glow-up π«
okay bestie, welcome to the qsrotate man page, section 1 of the manual (the "you can just run this, no cap" section). she's a log rotation tool, basically the cooler cousin of Apache's rotatelogs. yes ma'am, the same job, but with β¨vibesβ¨.
π NAME π
qsrotate β a log rotation tool (similar to Apache's rotatelogs). it rotates. it logs. it's giving main character energy fr fr. π
πΈ SYNOPSIS πΈ
qsrotate -o <file> [-s <sec> [-t <hours>]] [-b <bytes>] [-f] [-z] [-g
<num>] [-u <name>] [-m <mask>] [-p] [-d]
like, that's the whole invocation. read it slowly, she's not complicated, she's just iconic. π¦
β¨ DESCRIPTION β¨
so here's the tea: qsrotate reads from stdin (that's your piped log, bestie π«Ά) and writes the data into the file you hand her. then β and this is the part that eats β she rotates the file after the time interval you specified. no drama, no manual deleting, just clean rotation. periodt. π
π OPTIONS π
-o <file>β the output log file where the data goes. use an absolute path, bestie, don't be out here with relative paths, that's how you end up crying. π-s <sec>β rotation interval in seconds. default is86400seconds (that's a whole day, she's patient). β°-t <hours>β offset to UTC. this one also enables DST support, so she's ready for the time change chaos. default is0. π°οΈ-b <bytes>β file size limitation. default and max are2147352576bytes, and the min is1048576bytes. respect the range or she will simply not. π-fβ forced log rotation at the specified interval, even when no data is written. she rotates on schedule no matter what. stubborn queen behavior. π-zβ compress (gzip) the rotated file. smaller files, bigger slay. π₯-g <num>β generations, aka the number of files to keep. keep it tidy. π-u <name>β become another user, e.g.www-data. yes, she can change identity, it's very undercover popstar of her. π§-m <mask>β file permission, which is either600,640,660(the default) or664. those are the options, don't freestyle. π-pβ writes data also tostdout(for piped logging). sharing is caring. π-dβ line-by-line data reading, prefixing every line with a timestamp. every line gets its little time stamp of approval. β
π EXAMPLE π
TransferLog "|/usr/bin/qsrotate -f -z -g 3 -o
/var/log/apache/access.log -s 86400"
and here's the part you need to remember: the name of the rotated file will be /dest/filee.YYYYmmddHHMMSS where YYYYmmddHHMMSS is the system time at which the data has been rotated. so every rotation gets its own timestamped lil name. obsessed. π
π¦ NOTE π¦
- Each
qsrotateinstance must use an individual file. one file per instance, no sharing, that's the rule bestie. π - You may trigger a file rotation manually by sending the signal
USR1to the process. yes, you can just... poke her. and she'll rotate. iconic. π
π SEE ALSO π
qsdt(1), qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qsre(1), qsrespeed(1), qspng(1), qssign(1), qstail(1)
(the whole friend group, go say hi π«Ά)
π AUTHOR π
Pascal Buchbinder, http://mod-qos.sourceforge.net/
and that's the whole page, bestie! this was mod_qos utilities 11.74, dated May 2023, and yes she ate and left no crumbs. go rotate some logs, you've got this. πβ¨π
π¦ where this page comes from
- epel 9: mod_qos 11.74-1.el9 Β· GPLv2
- ubuntu noble: libapache2-mod-qos 11.74-1build3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms