> 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/sonar/administration/remote-access/processes-services-events.md). Agents can also search and read this documentation through its [MCP server](https://wiki.datadike.com/~gitbook/mcp).

# Processes, services, and event logs

List and end processes, start, stop, and reconfigure Windows services, and read Windows event logs from the Processes, Services, and Logs tabs of the remote window.

## What this is and when to use it

Three tabs of the remote window work without a desktop session:

| Tab           | What you can do                                                                    | Platforms             |
| ------------- | ---------------------------------------------------------------------------------- | --------------------- |
| **Processes** | See the running processes with their CPU, memory, and user, and end one            | Windows, Linux, macOS |
| **Services**  | See the Windows services, start, stop, or restart one, and change its startup type | Windows               |
| **Logs**      | Read the Windows **Application**, **System**, and **Security** event logs          | Windows               |

Use them to find what is using a machine's memory, restart a service that stopped answering, or read the errors around a failure, without interrupting the person working at the device.

These tabs are answered by the SONAR agent, not by the remote access agent, so nothing appears on the device's screen while you use them. The remote window itself opens only when the device shows **Remote Online**.

## Before you start

* A role in **Admin Center › Roles** with **List Agents** and **Use Mesh**, to open the remote window, and the permission for each tab:

  | Tab           | Permission                  | Section in **Roles**   |
  | ------------- | --------------------------- | ---------------------- |
  | **Processes** | **Manage Processes**        | **System**             |
  | **Services**  | **Manage Windows Services** | **Software & Updates** |
  | **Logs**      | **View Event Logs**         | **Logs**               |

  The API checks each permission, and a role limited to some clients or sites works only on devices in those clients and sites.
* The device's SONAR agent is online, because every request goes to it.

## Steps

Open the remote window first: open **Dashboard › Sysadmin**, select the device, and click **Take Control**. See [Remote control](https://wiki.datadike.com/sonar/administration/remote-access/remote-control.md) for the other ways in.

### Processes

1. Click the **Processes** tab. The list loads and refreshes every 2 seconds.
2. Type in **Search** to filter the list, or click a column header to sort it.
3. To slow down or speed up the refresh, change **Interval** with **−** and **+**. The shortest interval is 1 second.
4. To freeze the list while you read it, click **Stop Live Refresh**. Click **Resume Live Refresh** to start again.
5. To end a process, right-click its row and choose **End Process**.

{% hint style="warning" %}
**End Process** runs as soon as you click it, with no confirmation step, and it also ends the processes started by that one. Check the **PID** before you click.
{% endhint %}

### Services (Windows)

1. Click the **Services** tab. The list shows every Windows service on the device.
2. Right-click a service and choose **Start**, **Stop**, or **Restart**. The action runs at once and the list reloads.
3. To change how the service starts, double-click it, or right-click it and choose **Service Details**.
4. In the dialog, choose the **Startup type** and click **Save**. **Save** is available only when the value differs from the current one.

{% hint style="warning" %}
Stopping or disabling the **Mesh Agent** service ends remote access to the device, and stopping or disabling the `sonarrmm` service disconnects the SONAR agent. Neither can be undone from the console while it is down.
{% endhint %}

### Event logs (Windows)

1. Click the **Logs** tab. It opens the **Application** log for the last day.
2. Choose **Application**, **System**, or **Security**.
3. Choose how far back to read in **Show last&#x20;*****N*****&#x20;days**. The list reloads each time you change the log or the period.
4. Type in **Search** to filter the rows.
5. Click the text in the **Message** column to read the full message.

Reading the **Security** log, or a long period, takes longer. The console waits up to 30 seconds for the **Application** and **System** logs and up to 3 minutes for **Security**.

## What you should see

**Processes** shows a live table and, above it, two totals: CPU, green below 50 %, yellow from 50 %, red from 80 %, and RAM in use against the device's total memory. After **End Process**, the console shows "Process with PID: *number* was ended successfully" and the process leaves the list at the next refresh.

**Services** shows each service with its startup type and status. After an action, the console shows "The service was started successfully", "The service was stopped successfully", "The service was restarted successfully", or, after **Save**, "The service start type was updated successfully".

**Logs** shows the events newest first, with their type, source, event ID, and time.

## How to verify it worked

1. **End Process**: the process must disappear from the list at the next refresh. If it comes back with a new **PID**, something on the device started it again.
2. Service action: the **Status** column must show the new state after the list reloads. Click the refresh button above the list to read it again.
3. Startup type: open **Service Details** again. **Startup type** must show the value you saved, and the **Startup** column shows it in the list.
4. Event log: compare the newest event with the time of the problem you are investigating. If the list is empty, widen **Show last&#x20;*****N*****&#x20;days**.

The **Remote Session** entry written when you opened the remote window is the audit record of the visit, in the device's **Audits** tab and in **Reports & Audits › Audits**. The actions on these three tabs do not add entries of their own; use the checks above to confirm them.

## Common errors

| Symptom                                                              | Cause                                                                      | Fix                                                                                                                      |
| -------------------------------------------------------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| "Unable to contact the agent"                                        | The SONAR agent did not answer in time                                     | Check that the device is **Online** in the device panel and try again. For the **Security** log, choose a shorter period |
| A tab loads but stays empty, or an action is refused                 | Your role does not have the permission for that tab                        | Ask an administrator for **Manage Processes**, **Manage Windows Services**, or **View Event Logs**                       |
| There are no **Services** or **Logs** tabs                           | The device runs Linux or macOS                                             | Only **Processes** is available on those platforms                                                                       |
| **Start**, **Stop**, or **Save** shows an error message from Windows | Windows refused the change, for example a disabled service or a dependency | Read the message, fix the cause on the device, and try again                                                             |
| A **Stop** takes up to half a minute                                 | The console waits for the service to report that it stopped                | Wait for the message                                                                                                     |
| **End Process** reports an error                                     | The process could not be ended, for example because it already exited      | Refresh the list and check the **PID**                                                                                   |
| Some event messages are empty                                        | The event's source has no message text registered on that device           | Use the **Source** and **Event ID** to look the event up                                                                 |

## Field reference

**Processes** columns and controls:

| Field                                           | What it shows or does                              |
| ----------------------------------------------- | -------------------------------------------------- |
| **Name**                                        | Process name                                       |
| **CPU**                                         | Processor use reported for the process, in percent |
| **Memory**                                      | Memory the process holds in RAM                    |
| **User**                                        | Account the process runs as                        |
| **PID**                                         | Process ID                                         |
| **Stop Live Refresh** / **Resume Live Refresh** | Stops and restarts the automatic refresh           |
| **Interval**                                    | Seconds between refreshes. Default 2, minimum 1    |
| **Search**                                      | Filters the rows                                   |

**Services** columns:

| Field            | What it shows                                                   |
| ---------------- | --------------------------------------------------------------- |
| **Display Name** | Name shown in Windows                                           |
| **Name**         | Service name                                                    |
| **Startup**      | Startup type. **Automatic (Delayed)** when the start is delayed |
| **PID**          | Process ID of a running service                                 |
| **Status**       | Current state, such as running or stopped                       |
| **Log On As**    | Account the service runs as. **LocalSystem** when none is set   |

**Service Details** dialog:

| Field                                                         | What it does                        | Accepted values                                                        |
| ------------------------------------------------------------- | ----------------------------------- | ---------------------------------------------------------------------- |
| **Service name**, **Display name**, **Description**, **Path** | Read only                           | —                                                                      |
| **Startup type**                                              | How Windows starts the service      | **Automatic (Delayed Start)**, **Automatic**, **Manual**, **Disabled** |
| **Service status**                                            | Current state, read only            | —                                                                      |
| **Start**, **Stop**, **Restart**                              | Run the action and close the dialog | —                                                                      |
| **Save**                                                      | Applies the new **Startup type**    | Enabled only after a change                                            |

**Logs** fields:

| Field                                    | What it does                                                 | Accepted values                                               | Default         |
| ---------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------- | --------------- |
| Log                                      | Which Windows log to read                                    | **Application**, **System**, **Security**                     | **Application** |
| **Show last&#x20;*****N*****&#x20;days** | How far back to read                                         | 1, 2, 3, 4, 5, 10, 30, 60, 90, 180, 360, 9999                 | 1               |
| **Search**                               | Filters the rows                                             | Free text                                                     | Empty           |
| **Type**                                 | Event level                                                  | INFO, WARNING, ERROR, SUCCESS, AUDIT\_SUCCESS, AUDIT\_FAILURE | —               |
| **Source**, **Event ID**, **Time**       | Event origin, number, and time                               | —                                                             | —               |
| **Message (click to view full)**         | The first characters of the message. Click for the full text | —                                                             | —               |

## Related pages

* [Remote control](https://wiki.datadike.com/sonar/administration/remote-access/remote-control.md) — the remote window and the remote status
* [Checks](https://wiki.datadike.com/sonar/administration/automation/checks.md) — watch a service or an event log continuously instead of by hand
* [Run a command or a script on a device](https://wiki.datadike.com/sonar/administration/automation/run-commands-and-scripts.md) — act on processes and services with a script that is kept in history
* [Roles and permissions](https://wiki.datadike.com/sonar/administration/identities/roles.md) — **Manage Processes**, **Manage Windows Services**, **View Event Logs**
