Skip to content

Commit e913bf1

Browse files
committed
log rotation: prefer reopen over reload/restart
Signed-off-by: AshFungor evgenynarkhov2@gmail.com
1 parent e72fa66 commit e913bf1

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

doc/_admin-guide/180_Best_practices_and_examples/004_Configuring_log_rotation.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,12 @@ to file destination drivers in {{ site.product.short_name }}. Consider the follo
3838
- Less scripting is required, only logrotate has to be configured
3939
correctly.
4040

41-
- Requires frequent restart ({{ site.product.short_name }} must be reloaded/restarted
42-
when the files are rotated). After rotating the log files, reload
41+
- Starting from {{ site.product.short_name }} version 3.13 or later **syslog-ng-ctl reopen**
42+
must be used to signal file destination drivers to open log files again without stopping
43+
or interrupting the rest of configured log pipes. Alternately, {{ site.product.short_name }} can
44+
be reloaded/restarted when the files are rotated. After rotating the log files, reload
4345
{{ site.product.short_name }} using the **syslog-ng-ctl reload** command, or use
44-
another method to send a SIGHUP to {{ site.product.short_name }}. Alternatively,
45-
starting from {{ site.product.short_name }} version 3.13 or later **syslog-ng-ctl reopen**
46-
may be used to signal file destination drivers to open log files again without stopping
47-
or interrupting the rest of configured log pipes.
46+
another method to send a SIGHUP to {{ site.product.short_name }}
4847

4948
- The statistics collected by {{ site.product.short_name }}, and the correlation
5049
information gathered with Pattern Database, are lost with each

0 commit comments

Comments
 (0)