Skip to content

Commit 320b0be

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

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
@@ -41,6 +41,17 @@ Finally, you can configure :binary:`~bin.mongod` to send log data to the
4141
``syslog`` using the :option:`--syslog <mongod --syslog>` option. In
4242
this case, you can take advantage of alternate log rotation tools.
4343

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

4657
For information on logging, see the

0 commit comments

Comments
 (0)