@@ -305,58 +305,7 @@ affect logging:
305305Log Redaction
306306~~~~~~~~~~~~~
307307
308- .. versionadded:: 3.4 Available in MongoDB Enterprise only
309-
310- A :binary:`~bin.mongod` running with :setting:`security.redactClientLogData`
311- redacts :doc:`messages </reference/log-messages>` associated with any given
312- log event before logging, leaving only metadata, source files, or line numbers
313- related to the event. :setting:`security.redactClientLogData` prevents
314- potentially sensitive information from entering the system log at the cost of
315- diagnostic detail.
316-
317- For example, the following operation inserts a document into a
318- :binary:`~bin.mongod` running without log redaction. The :binary:`~bin.mongod`
319- has :setting:`systemLog.component.command.verbosity` set to ``1``:
320-
321- .. code-block:: javascript
322-
323- db.clients.insertOne( { "name" : "Joe", "PII" : "Sensitive Information" } )
324-
325- This operation produces the following log event:
326-
327- .. code-block:: text
328-
329- 2017-06-09T13:35:23.446-0400 I COMMAND [conn1] command internal.clients
330- appName: "MongoDB Shell"
331- command: insert {
332- insert: "clients",
333- documents: [ {
334- _id: ObjectId('593adc5b99001b7d119d0c97'),
335- name: "Joe",
336- PII: " Sensitive Information"
337- } ],
338- ordered: true
339- }
340- ...
341-
342- A :binary:`~bin.mongod` running with :setting:`security.redactClientLogData`
343- performing the same insert operation produces the following log event:
344-
345- .. code-block:: text
346-
347- 2017-06-09T13:45:18.599-0400 I COMMAND [conn1] command internal.clients
348- appName: "MongoDB Shell"
349- command: insert {
350- insert: "###", documents: [ {
351- _id: "###", name: "###", PII: "###"
352- } ],
353- ordered: "###"
354- }
355-
356- Use :setting:`~security.redactClientLogData` in conjunction with
357- :doc:`/core/security-encryption-at-rest` and
358- :doc:`/core/security-transport-encryption` to assist compliance with
359- regulatory requirements.
308+ .. include:: /includes/fact-log-redaction.rst
360309
361310Diagnosing Performance Issues
362311-----------------------------
0 commit comments