File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,8 @@ logRotate
66
77.. dbcommand:: logRotate
88
9- :dbcommand:`logRotate` is an admin only command that allows you to rotate
10- the MongoDB logs to prevent a single logfile from consuming too
11- much disk space. Use the following syntax: ::
9+ :dbcommand:`logRotate` is an :term:`admin database` command that allows you to rotate
10+ the MongoDB logs. Use the following syntax: ::
1211
1312 { logRotate: 1 }
1413
@@ -24,9 +23,15 @@ logRotate
2423
2524 kill -SIGUSR1 2200
2625
27- The rotated files will have a timestamp appended to the filename.
26+ The rotated files will have a timestamp of the form ``YYYY-MM-DD``\T ``HH-MM-SS``
27+ appended to the filename.
28+
2829
2930 .. note::
3031
31- The :dbcommand:`logRotate` command is not available to mongod instances
32- running on windows systems.
32+ .. versionadded::2.0.3
33+
34+ The :dbcommand:`logRotate` command is available to mongod instances
35+ running on Windows systems with MongoDB release 2.0.3 and higher.
36+
37+ .. 16175 thrown if rotatelogs fails
You can’t perform that action at this time.
0 commit comments