Annotated edit history of
rotatelogs(8) version 2 showing authors affecting page license.
View with all changes included.
| Rev |
Author |
# |
Line |
| 1 |
perry |
1 |
rotatelogs |
| |
|
2 |
!!!rotatelogs |
| |
|
3 |
NAME |
| |
|
4 |
SYNOPSIS |
| |
|
5 |
DESCRIPTION |
| |
|
6 |
OPTIONS |
| |
|
7 |
SEE ALSO |
| |
|
8 |
---- |
| |
|
9 |
!!NAME |
| |
|
10 |
|
| |
|
11 |
|
| |
|
12 |
rotatelogs - rotate Apache logs without having to kill the server |
| |
|
13 |
!!SYNOPSIS |
| |
|
14 |
|
| |
|
15 |
|
| |
|
16 |
__rotatelogs__ ''logfile rotationtime |
| |
|
17 |
[[offset]'' |
| |
|
18 |
!!DESCRIPTION |
| |
|
19 |
|
| |
|
20 |
|
| |
|
21 |
__rotatelogs__ is a simple program for use in conjunction |
| |
|
22 |
with Apache's piped logfile feature which can be used like |
| |
|
23 |
this: |
| |
|
24 |
|
| |
|
25 |
|
| |
|
26 |
!TransferLog |
| |
|
27 |
|
| |
|
28 |
|
| |
|
29 |
This creates the files /path/to/logs/access.log.nnnn where |
| |
|
30 |
nnnn is the system time at which the log nominally starts |
| |
|
31 |
(this time will always be a multiple of the rotation time, |
| |
|
32 |
so you can synchronize cron scripts with it). At the end of |
| |
|
33 |
each rotation time (here after 24 hours) a new log is |
| |
|
34 |
started. |
| |
|
35 |
!!OPTIONS |
| |
|
36 |
|
| |
|
37 |
|
| |
|
38 |
''logfile'' |
| |
|
39 |
|
| |
|
40 |
|
| |
|
41 |
The path plus basename of the logfile. If __logfile__ |
| |
|
42 |
includes any __%__ characters, it is treated as a format |
| |
|
43 |
string for ''strftime(3)''. Otherwise, the suffix .nnnn |
| |
|
44 |
is automatically added and is the time at which the logfile |
| |
|
45 |
was created. |
| |
|
46 |
|
| |
|
47 |
|
| |
|
48 |
''rotationtime'' |
| |
|
49 |
|
| |
|
50 |
|
| |
|
51 |
The rotation time in seconds. |
| |
|
52 |
|
| |
|
53 |
|
| |
|
54 |
''offset'' |
| |
|
55 |
|
| |
|
56 |
|
| |
|
57 |
The number of minutes offset from UTC. If omitted, zero is |
| |
|
58 |
assumed and UTC is used. For example, to use local time in |
| |
|
59 |
the zone UTC -5 hours, specify a value of ''-300'' for |
| |
|
60 |
this argument. |
| |
|
61 |
!!SEE ALSO |
| |
|
62 |
|
| |
|
63 |
|
| |
|
64 |
__apache(8)__ |
| |
|
65 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.