Skip to content

Commit da84261

Browse files
author
Ed Costello
committed
DOCS-46 document logRotate better
1 parent 4ebce5c commit da84261

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

source/reference/command/logRotate.txt

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)