File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -1338,6 +1338,27 @@ Logging Parameters
1338
1338
:doc:`/core/security-transport-encryption` to assist compliance with
1339
1339
regulatory requirements.
1340
1340
1341
+ To enable log redaction at startup, you can either:
1342
+
1343
+ - Start :binary:`mongod` with the
1344
+ :option:`--redactClientLogData <mongod --redactClientLogData>` option:
1345
+
1346
+ .. code-block:: javascript
1347
+
1348
+ mongod --redactClientLogData
1349
+
1350
+ - Set the :setting:`security.redactClientLogData` option in the
1351
+ :ref:`configuration file <configuration-options>`:
1352
+
1353
+ .. code-block:: yaml
1354
+
1355
+ security:
1356
+ redactClientLogData: true
1357
+ ...
1358
+
1359
+ You can't use the :option:`--setParameter <mongod --setParameter>`
1360
+ option to set :parameter:`redactClientLogData` at startup.
1361
+
1341
1362
To enable log redaction on a running ``mongod`` or
1342
1363
``mongos``, use the following command:
1343
1364
You can’t perform that action at this time.
0 commit comments