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