You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/_admin-guide/070_Destinations/040_File/000_File_destination_options.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,41 @@ without specifying an attribute: group().
64
64
65
65
{% include doc/admin-guide/options/local-time-zone.md %}
66
66
67
+
## logrotate()
68
+
69
+
*Description:* This option enables to rotate log files based on their size. The number of rotations and maximum filesize are set via a parameter list.
70
+
It has the following suboptions:
71
+
72
+
### enable()
73
+
74
+
| Type:| yes/no|
75
+
|Default:| no|
76
+
77
+
*Description:* Enable or disable logrotate feature.
78
+
79
+
### size()
80
+
81
+
| Type:| positive number (bytes)|
82
+
|Default:| 1MB|
83
+
84
+
*Description:* Maximum filesize that should trigger logrotation.
85
+
86
+
### rotations()
87
+
88
+
| Type:| positive number|
89
+
|Default:| 1|
90
+
91
+
*Description:* Maximum number of rotated files. This number does not include the *main* log file, meaning if this option is set to a number N then at most N+1 files are created.
92
+
Rotated files are named based on the given log file name and the their rotation id (`<file-name>.<id>`).
93
+
94
+
### Example: logrotate()
95
+
An example to enable logrotation with a maximum filesize of 500KB and 5 rotations:
0 commit comments