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 @@ -1747,6 +1747,27 @@ Logging Parameters
17471747 :doc:`/core/security-transport-encryption` to assist compliance with
17481748 regulatory requirements.
17491749
1750+ To enable log redaction at startup, you can either:
1751+
1752+ - Start :binary:`mongod` with the
1753+ :option:`--redactClientLogData <mongod --redactClientLogData>` option:
1754+
1755+ .. code-block:: javascript
1756+
1757+ mongod --redactClientLogData
1758+
1759+ - Set the :setting:`security.redactClientLogData` option in the
1760+ :ref:`configuration file <configuration-options>`:
1761+
1762+ .. code-block:: yaml
1763+
1764+ security:
1765+ redactClientLogData: true
1766+ ...
1767+
1768+ You can't use the :option:`--setParameter <mongod --setParameter>`
1769+ option to set :parameter:`redactClientLogData` at startup.
1770+
17501771 To enable log redaction on a running ``mongod`` or
17511772 ``mongos``, use the following command:
17521773
You can’t perform that action at this time.
0 commit comments