Skip to content

Update logrotate config example #4043

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions doc/book/admin/logs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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/<env>/<app>/<instance>/*.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 <tt_config_file> logrotate
/usr/bin/tt -S logrotate
endscript
}

Expand Down Expand Up @@ -93,4 +94,4 @@ specify the :ref:`box.cfg.log <cfg_logging-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.
used for logging.