> For the complete documentation index, see [llms.txt](https://wiki.datadike.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.datadike.com/pam/administration/sessions/live-monitoring.md).

# Live monitoring and termination

Watch, pause, resume, or cut off a privileged session while it is still running, disconnect a console login, and let users share a live terminal with a colleague.

## What this is and when to use it

Authorized profiles can act on a privileged session **while it is happening**. From the list of active sessions an administrator or auditor can watch the session, freeze it, hand control back, or drop it, and follow the commands and file transfers as they occur.

Use it when something is in progress that you need to see or stop: a change window you are supervising, an unfamiliar third party at work, an alert on a session that is still open.

Three things are easily confused, and the distinctions decide which screen you want:

| You want to                                                   | Go to                                                                                  |
| ------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| Act on a session in progress                                  | **Audit › Sessions › Online** — this page                                              |
| Replay a session that has ended                               | [Session recordings](https://wiki.datadike.com/pam/administration/audit/recordings.md) |
| Disconnect someone from the console itself, not from an asset | **Audit › Console › Online users** — below                                             |

Session **monitoring** and session **sharing** are also different things. Monitoring is something an auditor does to someone else's session, under RBAC. Sharing is something the session's own owner does, by handing out a link.

{% hint style="info" %}
Every intervention is itself audited. Watching, pausing, resuming, and disconnecting are written to the audit trail with the operator, the session affected, and the time — so a monitor's actions are as traceable as the monitored user's.
{% endhint %}

## Before you start

* A role that grants live-session permissions. Monitoring someone else's session is gated by RBAC, and without it the sessions of other users are not visible or actionable. See [Roles](https://wiki.datadike.com/pam/administration/identities/roles.md).
* An understanding of the blast radius. **Pause**, **Resume**, and **Disconnect** take effect immediately on the monitored user's screen. Keep these permissions on administration and audit profiles.
* If your policy requires it, the original user's approval before a monitor may join a session — this can be turned on so that watching is not silent.
* For sharing, **Session share** must be enabled at **System settings › Security › Sessions**, and the user needs the **Share** action in the authorization that grants them the asset. See [Authorizations](https://wiki.datadike.com/pam/administration/access/authorizations.md).

## Acting on a live session

1. Open **Audit › Sessions › Online**. The list shows, in real time, every active session with its user, target asset, account, protocol, authentication method, and start time.
2. Find the session and use the **Operation** column, or the **More actions** menu.

| Action         | What it does                                                                                                                                                                                          |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Watch**      | Opens the live session read-only, as a shadow. You see exactly what the user sees and cannot interfere                                                                                                |
| **Pause**      | Suspends the session immediately. The user's screen freezes and no input is accepted while it stays paused — this is what buys you time to assess something suspicious without destroying the session |
| **Resume**     | Returns control to the user from the point where it was interrupted                                                                                                                                   |
| **Disconnect** | Ends the session at once, dropping the user's connection to the asset                                                                                                                                 |

{% hint style="warning" %}
**Pause** is the tool for an ambiguous situation and **Disconnect** is the tool for a decided one. Pausing preserves the session and everything in it while you decide; disconnecting ends it and the user has to start again.
{% endhint %}

While you are watching, the session's content keeps flowing into the audit records: commands as they are typed, uploads and downloads as they happen, and the start, pause, resume, and end events with the identity of whoever caused each one. See [Audit trail](https://wiki.datadike.com/pam/administration/audit/audit-trail.md).

## Sharing a live session with a colleague

Sharing is user-initiated collaboration rather than oversight: the owner of a session invites someone in, to ask for help or to be observed.

{% hint style="warning" %}
Sharing works **only for SSH and Telnet sessions opened in the web terminal**. RDP, VNC, and database sessions cannot be shared. An auditor can still watch those live from **Audit › Sessions › Online**.
{% endhint %}

From an active web terminal session:

1. Click the share icon on the right of the session window.
2. Set how long the link stays valid.
3. Choose the access type — **Read and write**, marked with a pencil, lets the guest type; **Read only**, marked with an eye, lets them watch.
4. Optionally set a verification code the guest must enter as well as holding the link.
5. Create the link and send it to the colleague.

The share icon then shows how many people are in the session. The owner can disconnect any guest at any moment, and closing the link stops new joins. Commands are attributed to each participant individually in the audit records, so a read-and-write share does not blur who did what.

## Disconnecting a console login

**Audit › Console › Online users** is about the solution's own web interface, not about asset sessions. It lists who is signed in, how they authenticated, and when, with a **Disconnect** button per user and bulk options under **More actions**.

Two limits are worth knowing before you go looking for a user who is not listed:

* Only users **connected over the web** appear here.
* You cannot disconnect your own current session from this screen.

## Automatic termination

Some terminations do not need an operator. At **System settings › Security › Sessions**:

| Field                            | Default | What it does                                                                                |
| -------------------------------- | ------- | ------------------------------------------------------------------------------------------- |
| Max idle time (minute)           | 30      | Disconnects a session idle for longer than this                                             |
| Max online time (hour)           | —       | Disconnects a session open longer than this, active or not                                  |
| Session expire at browser closed | —       | Ends the user's console session when they close the browser, regardless of the idle timeout |

## How to verify it worked

Verify with a real session rather than by reading the permission list. Use a second browser profile, or a test user, so you can see both sides:

1. As the test user, open a session to an asset. It must appear in **Audit › Sessions › Online** within seconds. If it does not, either RBAC is not granting you other users' sessions or the session is not being brokered.
2. **Watch** it, and type on the test user's side. The output must appear in your shadow view, and nothing you type must reach the asset.
3. **Pause** it. On the test user's side the screen must freeze and input must be refused. This is the check people skip, and it is the one that matters most in an incident.
4. **Resume** it and confirm control returns at the point of interruption, not at a new prompt.
5. **Disconnect** it and confirm the test user's connection drops and the session leaves **Online** for **Historical sessions** — where its recording becomes available.
6. Open [Audit trail](https://wiki.datadike.com/pam/administration/audit/audit-trail.md) and confirm your four actions are logged against your own account, with the session identified.

## Common errors

| Symptom                                                                            | Cause                                                                                                                   | Fix                                                                                              |
| ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| You only see your own sessions in **Online**                                       | Your role does not grant visibility of other users' sessions                                                            | Adjust the role — see [Roles](https://wiki.datadike.com/pam/administration/identities/roles.md)  |
| **Watch** opens but nothing happens                                                | The original user has to approve the monitor joining, and has not yet                                                   | Wait for the approval, or turn the requirement off if silent oversight is your policy            |
| A session stays under **Online** after the user disconnected                       | The session did not close cleanly                                                                                       | It has to be closed before its recording is offered; check the entry and end it from this screen |
| The user reports "The session has ended because it conflicts with another session" | Another person with permission to the same asset took the access over                                                   | Identify who in **Audit › Sessions**; nothing is broken, the access was superseded               |
| The share icon is not in the session window                                        | **Session share** is disabled globally, the user lacks the **Share** action, or the protocol is RDP, VNC, or a database | Enable sharing and grant the action; for graphical sessions, use auditor **Watch** instead       |
| A user you want to disconnect is not in **Online users**                           | They are not connected over the web, or they are you                                                                    | Only web-connected users are listed, and you cannot disconnect your own current session          |

## Field reference

**Audit › Sessions › Online** columns:

| Field                 | What it holds                                    |
| --------------------- | ------------------------------------------------ |
| User                  | Who opened the session                           |
| Target asset          | The asset being accessed                         |
| Account               | The credential in use                            |
| Protocol              | SSH, RDP, VNC, database, and others              |
| Authentication method | How the user authenticated                       |
| Start time            | When the session began                           |
| Operation             | **Watch**, **Pause**, **Resume**, **Disconnect** |

**Audit › Console › Online users** columns:

| Field                 | What it holds                            |
| --------------------- | ---------------------------------------- |
| User                  | Who is signed in to the console          |
| Authentication method | How they signed in, for example password |
| Login date            | When they signed in                      |
| Active                | Whether the login is still active        |
| Operation             | **Disconnect**                           |

## Related pages

* [Session recordings](https://wiki.datadike.com/pam/administration/audit/recordings.md) — the same sessions after they have ended
* [Session recording](https://wiki.datadike.com/pam/administration/sessions/recording.md) — what gets captured, and the watermark
* [Audit trail](https://wiki.datadike.com/pam/administration/audit/audit-trail.md) — where monitoring actions and session events are logged
* [Authorizations](https://wiki.datadike.com/pam/administration/access/authorizations.md) — where the **Share** action is granted
* [Roles](https://wiki.datadike.com/pam/administration/identities/roles.md) — the RBAC permissions that gate monitoring
