Skip to content

Commit e62b6d7

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCSP-2519 log rotation (#991) (#1067)
* 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 1eb58ad commit e62b6d7

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

source/tutorial/rotate-log-files.txt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,20 @@ 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-
.. seealso:: For information on logging, see the
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+
53+
.. seealso::
54+
55+
For information on logging, see the
4356
:ref:`monitoring-standard-loggging` section.
4457

4558
Default Log Rotation Behavior

0 commit comments

Comments
 (0)