Skip to content

Commit 60d56b4

Browse files
DOCSP-48522-update-mongosh-history-log-description (#394)
* DOCSP-48522-update-mongosh-history-log-description * typo * reviewer updates * nit
1 parent 31974ef commit 60d56b4

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

source/includes/list-table-shell-properties.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,17 @@
103103
* - ``redactHistory``
104104
- string
105105
- ``remove``
106-
- Controls what information is recorded in the shell history.
107-
Must be one of:
106+
- Controls what information is recorded in the ``mongosh`` command history.
107+
You can access the ``mongosh`` command history via the up and down keys
108+
or Ctrl+R while inside the shell.
109+
110+
Must be one of the following values:
108111

109112
- ``keep``: Retain all history.
110-
- ``remove``: Remove lines which contain sensitive information.
111-
- ``remove-redact``: Redact sensitive information.
113+
- ``remove``: Remove lines that contain sensitive commands from the history.
114+
For example, ``remove`` removes calls to db.auth() or connect().
115+
- ``remove-redact``: Remove lines that contain sensitive commands and redact
116+
specific strings in other history lines, such as file paths, email addresses, and URLs.
112117

113118
* - ``showStackTraces``
114119
- boolean

0 commit comments

Comments
 (0)