File tree Expand file tree Collapse file tree 5 files changed +38
-11
lines changed Expand file tree Collapse file tree 5 files changed +38
-11
lines changed Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ needed:
342
342
Each additional level ``v`` adds additional verbosity to the
343
343
logging. The ``verbose`` option is equal to ``v = true``.
344
344
345
- - :setting:`diaglog` enables diagnostic logging. Level ``3``
345
+ - :setting:`diaglog` enables :term:` diagnostic logging <diagnostic log>` . Level ``3``
346
346
logs all read and write options.
347
347
348
348
- :setting:`objcheck` forces :program:`mongod` to validate all
@@ -352,7 +352,7 @@ needed:
352
352
performance.
353
353
354
354
- :setting:`cpu` forces :program:`mongod` to report the percentage of
355
- the last interval spent in :term:`write-lock`. The interval is
356
- typically 4 seconds, and each output line in the log includes both
357
- the actual interval since the last report and the percentage of
358
- time spent in write lock.
355
+ the last interval spent in :term:`write-lock`. The interval is
356
+ typically 4 seconds, and each output line in the log includes both
357
+ the actual interval since the last report and the percentage of
358
+ time spent in write lock.
Original file line number Diff line number Diff line change
1
+
2
+ .. warning ::
3
+
4
+ Setting the diagnostic level to ``0 `` will cause :program: `mongod `
5
+ to stop writing data to the :term: `diagnostic log ` file, however the
6
+ :program: `mongod ` instance will continue to keep the file open.
7
+ If you want to rename, move, or delete the diagnostic log you must
8
+ cleanly shut down the :program: `mongod ` instance before doing so.
Original file line number Diff line number Diff line change @@ -269,10 +269,11 @@ Settings
269
269
270
270
*Default:* 0
271
271
272
- Creates a very verbose, diagnostic log for troubleshooting and
272
+ Creates a very verbose, :term:` diagnostic log` for troubleshooting and
273
273
recording various errors. MongoDB writes these log files in the
274
- :setting:`dbpath` in a series of files that begin with the string
275
- ``diaglog``.
274
+ :setting:`dbpath` directory in a series of files that begin with the string
275
+ ``diaglog`` with the time logging was initiated appended as a hex
276
+ string.
276
277
277
278
The value of this setting configures the level of
278
279
verbosity. Possible values, and their impact are as follows.
@@ -298,6 +299,8 @@ Settings
298
299
299
300
:setting:`diaglog` is for internal use and not intended for most
300
301
users.
302
+
303
+ .. include:: /includes/warning-diaglogging-off.rst
301
304
302
305
.. setting:: directoryperdb
303
306
Original file line number Diff line number Diff line change @@ -866,3 +866,16 @@ Glossary
866
866
results. The optimizer then uses the query plan each time the
867
867
query is run. If a collection changes significantly, the optimizer
868
868
creates a new query plan.
869
+
870
+ diagnostic log
871
+ :program:`mongod` can create a verbose log of operations with
872
+ the :option:`mongod --diaglog` option or through the
873
+ :dbcommand:`diagLogging` command. This log will be created in
874
+ the directory specified with the :option:`mongod --dbpath` option
875
+ or the default :file:`/data/db` directory. The log file will
876
+ be named :file:`diaglog.{time in hex}`, with the time when
877
+ logging was initiated appended as a hexadecimal string.
878
+
879
+ .. include:: /includes/warning-diaglogging-off.rst
880
+
881
+ .. seealso:: :option:`mongod --diaglog`
Original file line number Diff line number Diff line change @@ -189,10 +189,11 @@ Options
189
189
190
190
.. option:: --diaglog <value>
191
191
192
- Creates a very verbose, diagnostic log for troubleshooting and
192
+ Creates a very verbose, :term:` diagnostic log` for troubleshooting and
193
193
recording various errors. MongoDB writes these log files in the
194
- :setting:`dbpath` in a series of files that begin with the string
195
- ``diaglog``.
194
+ :setting:`dbpath` directory in a series of files that begin with the string
195
+ ``diaglog`` with the time logging was initiated appended as a hex
196
+ string.
196
197
197
198
The specified value configures the level of verbosity. Possible
198
199
values, and their impact are as follows.
@@ -219,6 +220,8 @@ Options
219
220
:option:`--diaglog` is for internal use and not intended for most
220
221
users.
221
222
223
+ .. include:: /includes/warning-diaglogging-off.rst
224
+
222
225
.. option:: --directoryperdb
223
226
224
227
Alters the storage pattern of the data directory to store each
You can’t perform that action at this time.
0 commit comments