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
6
6
7
7
.. dbcommand:: logRotate
8
8
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: ::
12
11
13
12
{ logRotate: 1 }
14
13
@@ -24,9 +23,15 @@ logRotate
24
23
25
24
kill -SIGUSR1 2200
26
25
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
+
28
29
29
30
.. note::
30
31
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