11---
2- title : " Find your Session ID."
2+ title : " Find your Log ID."
33level : 4
44ref : session-id
55content : |
66
77 .. example::
88
9- |mdb-shell| displays the session ID each time you open the shell.
9+ |mdb-shell| displays the log ID each time you open the shell.
1010
1111 .. code-block:: javascript
1212 :copyable: false
1313 :emphasize-lines: 3
1414
1515 $ mongosh
1616
17- Current sessionID : c2961dbd6b73b052671d9df0
17+ Current Mongosh Log ID : c2961dbd6b73b052671d9df0
1818 Connecting to: mongodb://127.0.0.1:27017
1919 Using MongoDB: 4.2.8
2020 Using Mongosh Beta: 0.0.6
@@ -35,19 +35,19 @@ content: |
3535
3636 .. code-block:: sh
3737
38- ~/.mongodb/mongosh/<sessionId >_log
38+ ~/.mongodb/mongosh/<LogID >_log
3939
4040 Run the following command to view the log for a session:
4141
4242 .. code-block:: sh
4343
44- cat ~/.mongodb/mongosh/<sessionId >_log
44+ cat ~/.mongodb/mongosh/<LogID >_log
4545
4646 Run the following command to tail the log for a session:
4747
4848 .. code-block:: sh
4949
50- tail -f ~/.mongodb/mongosh/<sessionId >_log
50+ tail -f ~/.mongodb/mongosh/<LogID >_log
5151
5252 .. tip::
5353
@@ -59,27 +59,27 @@ content: |
5959
6060 .. code-block:: sh
6161
62- tail -f ~/.mongodb/mongosh/<sessionId >_log | pino-colada
62+ tail -f ~/.mongodb/mongosh/<LogID >_log | pino-colada
6363
6464 .. tab::
6565 :tabid: windows
6666
6767 .. code-block:: sh
6868
69- %UserProfile%/.mongodb/mongosh/<sessionId >_log
69+ %UserProfile%/.mongodb/mongosh/<LogID >_log
7070
7171 Run the following PowerShell command to view the log for a session:
7272
7373 .. code-block:: sh
7474
75- Get-Content %UserProfile%/.mongodb/mongosh/<sessionId >_log
75+ Get-Content %UserProfile%/.mongodb/mongosh/<LogID >_log
7676
7777 Run the following PowerShell command to tail the log for a
7878 session:
7979
8080 .. code-block:: sh
8181
82- Get-Content %UserProfile%/.mongodb/mongosh/<sessionId >_log -Wait
82+ Get-Content %UserProfile%/.mongodb/mongosh/<LogID >_log -Wait
8383
8484 .. tip::
8585
@@ -91,6 +91,6 @@ content: |
9191
9292 .. code-block:: sh
9393
94- Get-Content %UserProfile%/.mongodb/mongosh/<sessionId >_log -Wait | pino-colada
94+ Get-Content %UserProfile%/.mongodb/mongosh/<LogID >_log -Wait | pino-colada
9595
9696 ...
0 commit comments