Skip to content

Commit 47b9380

Browse files
authored
Update lorgotate config example (#4043)
Per tarantool/tt@a909b1a
1 parent 9980524 commit 47b9380

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/book/admin/logs.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,17 @@ A Tarantool log rotation configuration for ``logrotate`` can look like this:
5151

5252
.. code-block:: text
5353
54-
/var/log/tarantool/*.log {
54+
# /var/log/tarantool/<env>/<app>/<instance>/*.log
55+
/var/log/tarantool/*/*/*/*.log {
5556
daily
5657
size 512k
5758
missingok
5859
rotate 10
5960
compress
6061
delaycompress
61-
create 0640 tarantool adm
62+
sharedscripts # Run tt logrotate only once after all logs are rotated.
6263
postrotate
63-
tt -c <tt_config_file> logrotate
64+
/usr/bin/tt -S logrotate
6465
endscript
6566
}
6667
@@ -93,4 +94,4 @@ specify the :ref:`box.cfg.log <cfg_logging-log>` parameter, for example:
9394
box.cfg{log = 'syslog:identity=tarantool,facility=user'}
9495
9596
In such configurations, log rotation is usually handled by the external program
96-
used for logging.
97+
used for logging.

0 commit comments

Comments
 (0)