File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -51,16 +51,17 @@ A Tarantool log rotation configuration for ``logrotate`` can look like this:
51
51
52
52
.. code-block :: text
53
53
54
- /var/log/tarantool/*.log {
54
+ # /var/log/tarantool/<env>/<app>/<instance>/*.log
55
+ /var/log/tarantool/*/*/*/*.log {
55
56
daily
56
57
size 512k
57
58
missingok
58
59
rotate 10
59
60
compress
60
61
delaycompress
61
- create 0640 tarantool adm
62
+ sharedscripts # Run tt logrotate only once after all logs are rotated.
62
63
postrotate
63
- tt -c <tt_config_file> logrotate
64
+ /usr/bin/ tt -S logrotate
64
65
endscript
65
66
}
66
67
@@ -93,4 +94,4 @@ specify the :ref:`box.cfg.log <cfg_logging-log>` parameter, for example:
93
94
box.cfg{log = 'syslog:identity=tarantool,facility=user'}
94
95
95
96
In such configurations, log rotation is usually handled by the external program
96
- used for logging.
97
+ used for logging.
You can’t perform that action at this time.
0 commit comments