Skip to content

Commit 79e9966

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCSP-2519 log rotation (#991) (#1066)
* DOCSP-2519-log-rotation * DOCSP-2519-log-rotation * DOCSP-2519-log-rotation Co-authored-by: jason-price-mongodb <[email protected]> Co-authored-by: jason-price-mongodb <[email protected]>
1 parent bf25d89 commit 79e9966

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

source/tutorial/rotate-log-files.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ Finally, you can configure :binary:`~bin.mongod` to send log data to the
3939
``syslog`` using the :option:`--syslog <mongod --syslog>` option. In
4040
this case, you can take advantage of alternate log rotation tools.
4141

42+
To rotate the log files, you must perform one of these steps:
43+
44+
- Send a ``SIGUSR1`` signal to the :binary:`~bin.mongod` or
45+
:binary:`~bin.mongos` process.
46+
47+
- Run the MongoDB :dbcommand:`logRotate` command.
48+
49+
- Run the Linux/Unix ``logrotate`` utility.
50+
51+
See the examples later on this page.
52+
4253
.. seealso::
4354

4455
For information on logging, see the

0 commit comments

Comments
 (0)