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 @@ -1699,6 +1699,27 @@ Logging Parameters
1699
1699
:doc:`/core/security-transport-encryption` to assist compliance with
1700
1700
regulatory requirements.
1701
1701
1702
+ To enable log redaction at startup, you can either:
1703
+
1704
+ - Start :binary:`mongod` with the
1705
+ :option:`--redactClientLogData <mongod --redactClientLogData>` option:
1706
+
1707
+ .. code-block:: javascript
1708
+
1709
+ mongod --redactClientLogData
1710
+
1711
+ - Set the :setting:`security.redactClientLogData` option in the
1712
+ :ref:`configuration file <configuration-options>`:
1713
+
1714
+ .. code-block:: yaml
1715
+
1716
+ security:
1717
+ redactClientLogData: true
1718
+ ...
1719
+
1720
+ You can't use the :option:`--setParameter <mongod --setParameter>`
1721
+ option to set :parameter:`redactClientLogData` at startup.
1722
+
1702
1723
To enable log redaction on a running ``mongod`` or
1703
1724
``mongos``, use the following command:
1704
1725
You can’t perform that action at this time.
0 commit comments