1QSROTATE(1)                    qsrotate man page                   QSROTATE(1)
2
3
4

NAME

6       qsrotate - a log rotation tool (similar to Apache's rotatelogs).
7

SYNOPSIS

9       qsrotate  -o  <file> [-s <sec> [-t <hours>]] [-b <bytes>] [-f] [-z] [-g
10       <num>] [-u <name>] [-m <mask>] [-p] [-d]
11

DESCRIPTION

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

OPTIONS

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

EXAMPLE

46         TransferLog "|qsrotate -f -z -g 3 -o /dest/file -s 86400"
47
48       The  name  of the rotated file will be /dest/filee.YYYYmmddHHMMSS where
49       YYYYmmddHHMMSS is the system time at which the data has been rotated.
50

NOTE

52        - Each qsrotate instance must use an individual file.
53        - You may trigger a file rotation manually by sending the signal  USR1
54       to the process.
55

SEE ALSO

57       qsexec(1),  qsfilter2(1),  qsgeo(1),  qsgrep(1),  qshead(1),  qslog(1),
58       qslogger(1), qspng(1), qssign(1), qstail(1)
59

AUTHOR

61       Pascal Buchbinder, http://mod-qos.sourceforge.net/
62
63
64
65mod_qos utilities 11.55            June 2018                       QSROTATE(1)
Impressum