1QSROTATE(1) qsrotate man page QSROTATE(1)
2
3
4
6 qsrotate - a log rotation tool (similar to Apache's rotatelogs).
7
9 qsrotate -o <file> [-s <sec> [-t <hours>]] [-b <bytes>] [-f] [-z] [-g
10 <num>] [-u <name>] [-m <mask>] [-p] [-d]
11
13 qsrotate reads from stdin (piped log) and writes the data to the pro‐
14 vided file rotating the file after the specified time.
15
17 -o <file>
18 Output log file to write the data to (use an absolute path).
19
20 -s <sec>
21 Rotation interval in seconds, default are 86400 seconds.
22
23 -t <hours>
24 Offset to UTC (enables also DST support), default is 0.
25
26 -b <bytes>
27 File size limitation (default/max. are 2147352576 bytes, min.
28 are 1048576 bytes).
29
30 -f Forced log rotation at the specified interval even no data is
31 written.
32
33 -z Compress (gzip) the rotated file.
34
35 -g <num>
36 Generations (number of files to keep).
37
38 -u <name>
39 Become another user, e.g. www-data. -m <mask> File permission
40 which is either 600, 640, 660 (default) or 664.
41
42 -p Writes data also to stdout (for piped logging). -d Line-by-line
43 data reading prefixing every line with a timestamp.
44
46 TransferLog "|/usr/bin/qsrotate -f -z -g 3 -o /var/log/apache/ac‐
47 cess.log -s 86400"
48
49 The name of the rotated file will be /dest/filee.YYYYmmddHHMMSS where
50 YYYYmmddHHMMSS is the system time at which the data has been rotated.
51
53 - Each qsrotate instance must use an individual file.
54 - You may trigger a file rotation manually by sending the signal USR1
55 to the process.
56
58 qsdt(1), qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qs‐
59 log(1), qslogger(1), qsre(1), qsrespeed(1), qspng(1), qssign(1), qs‐
60 tail(1)
61
63 Pascal Buchbinder, http://mod-qos.sourceforge.net/
64
65
66
67mod_qos utilities 11.74 May 2023 QSROTATE(1)