diff --git a/doc/book/admin/logs.rst b/doc/book/admin/logs.rst index e12b48aaf8..397f1e3af2 100644 --- a/doc/book/admin/logs.rst +++ b/doc/book/admin/logs.rst @@ -51,16 +51,17 @@ A Tarantool log rotation configuration for ``logrotate`` can look like this: .. code-block:: text - /var/log/tarantool/*.log { + # /var/log/tarantool////*.log + /var/log/tarantool/*/*/*/*.log { daily size 512k missingok rotate 10 compress delaycompress - create 0640 tarantool adm + sharedscripts # Run tt logrotate only once after all logs are rotated. postrotate - tt -c logrotate + /usr/bin/tt -S logrotate endscript } @@ -93,4 +94,4 @@ specify the :ref:`box.cfg.log ` parameter, for example: box.cfg{log = 'syslog:identity=tarantool,facility=user'} In such configurations, log rotation is usually handled by the external program -used for logging. \ No newline at end of file +used for logging.