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 @@ -1949,6 +1949,27 @@ Logging Parameters
1949
1949
:doc:`/core/security-transport-encryption` to assist compliance with
1950
1950
regulatory requirements.
1951
1951
1952
+ To enable log redaction at startup, you can either:
1953
+
1954
+ - Start :binary:`mongod` with the
1955
+ :option:`--redactClientLogData <mongod --redactClientLogData>` option:
1956
+
1957
+ .. code-block:: javascript
1958
+
1959
+ mongod --redactClientLogData
1960
+
1961
+ - Set the :setting:`security.redactClientLogData` option in the
1962
+ :ref:`configuration file <configuration-options>`:
1963
+
1964
+ .. code-block:: yaml
1965
+
1966
+ security:
1967
+ redactClientLogData: true
1968
+ ...
1969
+
1970
+ You can't use the :option:`--setParameter <mongod --setParameter>`
1971
+ option to set :parameter:`redactClientLogData` at startup.
1972
+
1952
1973
To enable log redaction on a running ``mongod`` or
1953
1974
``mongos``, use the following command:
1954
1975
You can’t perform that action at this time.
0 commit comments