> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/gateway/help/troubleshooting/logs-and-events.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# Logs and event IDs

Where Devolutions Gateway writes its logs, how they rotate, how to get more detail, and its Windows Event Log and syslog event IDs.

***Devolutions Gateway*** writes a detailed log to files in its data folder, and the most important events (start, stop, configuration and certificate problems) to the Windows Event Log or to syslog on Linux. Devolutions Server and Devolutions Cloud add their own activity logs about each gateway. This page tells you where each log is and what each event ID means.

## Devolutions Gateway log files

<table><thead><tr><th width="250">ITEM</th><th>DETAILS</th></tr></thead><tbody><tr><td><strong>Folder</strong></td><td>The data folder: <code>C:\ProgramData\Devolutions\Gateway</code> on Windows, <code>/etc/devolutions-gateway</code> on Linux, <code>/tmp/devolutions-gateway</code> in the Docker container. Change it with <code>LogFile</code> in <code>gateway.json</code>, a folder followed by a file name prefix, for example <code>"LogFile": "D:\\Logs\\gateway"</code>.</td></tr><tr><td><strong>File names</strong></td><td><code>gateway.*.log</code>: the prefix <code>gateway</code>, a part added at each rotation, and the extension <code>.log</code>.</td></tr><tr><td><strong>Rotation</strong></td><td>A new file every 3 MB. Devolutions Gateway keeps the 10 most recent files.</td></tr><tr><td><strong>Cleanup</strong></td><td>Once a day, files older than 90 days are deleted.</td></tr><tr><td><strong>Console output</strong></td><td>The same lines are written to the standard output: on screen when Devolutions Gateway runs in a console, in the systemd journal on Linux (<code>journalctl -u devolutions-gateway</code>), and in <code>docker logs</code> for a container.</td></tr><tr><td><strong>First line</strong></td><td>Each start writes the version of Devolutions Gateway.</td></tr></tbody></table>

### Get more detail

Set `VerbosityProfile` in `gateway.json`, then restart the service:

<table><thead><tr><th width="200">VALUE</th><th>WHAT IS LOGGED</th></tr></thead><tbody><tr><td><code>Default</code></td><td>Information, warnings and errors. Used when the setting is absent.</td></tr><tr><td><code>Debug</code></td><td>Detailed traces of sessions, tunnels and API requests. Use it when Devolutions support asks for logs.</td></tr><tr><td><code>Tls</code></td><td>Detailed TLS and certificate traces, for certificate and handshake problems.</td></tr><tr><td><code>All</code></td><td>Everything. Fills the 10 files quickly: use it only for a short test.</td></tr><tr><td><code>Quiet</code></td><td>Warnings and errors only.</td></tr></tbody></table>

```json
"VerbosityProfile": "Debug"
```

On Windows, open the text editor as administrator to edit `gateway.json`. `Set-DGatewayConfig -VerbosityProfile Debug` from the [PowerShell module](https://docs.devolutions.net/gateway/reference/powershell-module.md) also works, but it rewrites the file and removes settings the module doesn't know, such as `TlsVerifyStrict`. Set the profile back to `Default` afterwards.

### Read the logs remotely

* **Devolutions Server**: ***Administration*** – ***Devolutions Gateway***, menu of the gateway row – ***Logs***. Pick a file in ***Log file*** (***Latest*** first), then ***Search***, ***Copy to clipboard*** or ***Download***. Error when the gateway can't send it: "Could not fetch your gateway {name} log file.".
* **Devolutions Cloud**: ***Administration*** – ***Devolutions Gateway***, ***More*** menu of the gateway row – ***Logs***, then ***Download*** (file `gateway-<name>.log`). The browser reads the log from the gateway, so the gateway URL must be reachable from your computer.
* **Remote Desktop Manager**: ***Administration*** – ***Devolutions Gateway***, select the gateway, ***Logs*** tab of the details pane – ***Download***.
* **PowerShell**: `Get-DSGatewayLogs -GatewayID <id> -OutputPath <file>` from the Devolutions.PowerShell module, with Devolutions Server.

These return the most recent log file.

## boot.stacktrace

When the service fails to start, Devolutions Gateway writes the complete error to `boot.stacktrace` in the data folder, next to `gateway.json`. A service has no console, so this file is the first place to look. See [Devolutions Gateway troubleshooting](https://docs.devolutions.net/gateway/help/troubleshooting/general.md).

## Windows Event Log and syslog

* **Windows**: ***Event Viewer*** – ***Windows Logs*** – ***Application***, source `Devolutions Gateway`. The Windows installer registers the source.
* **Linux**: syslog, identifier `devolutions-gateway`, facility `daemon`, with the process ID. With systemd, also `journalctl -t devolutions-gateway`.

Each event has a short text and fields, such as the error or the address, that give the details.

<table><thead><tr><th width="90">ID</th><th width="260">TEXT</th><th width="110">LEVEL</th><th>MEANING AND WHAT TO DO</th></tr></thead><tbody><tr><td>1000</td><td>Service started</td><td>Information</td><td>The service started. The <code>version</code> field gives the Devolutions Gateway version.</td></tr><tr><td>1001</td><td>Service stopping</td><td>Information</td><td>The service received a stop request.</td></tr><tr><td>1010</td><td>Configuration invalid</td><td>Critical</td><td><code>gateway.json</code> can't be used. The <code>error_chain</code> field gives the reason, and <code>boot.stacktrace</code> is written. See <a href="https://docs.devolutions.net/gateway/reference/configuration.md">Configuration file (gateway.json)</a>.</td></tr><tr><td>1020</td><td>Start failed</td><td>Error</td><td>The service couldn't start, for example because a port is in use. A certificate refused while the configuration is loaded gives event 1010 instead. Read <code>error_chain</code> and <code>boot.stacktrace</code>.</td></tr><tr><td>2000</td><td>Listener started</td><td>Information</td><td>A listener opened. Fields <code>address</code> and <code>proto</code>.</td></tr><tr><td>2001</td><td>Listener bind failed</td><td>Error</td><td>A listener couldn't open its port. Another program uses it, or the address doesn't exist on this computer. Devolutions Gateway retries 10 times, 10 seconds apart.</td></tr><tr><td>3000</td><td>TLS configured</td><td>Information</td><td>The TLS certificate was loaded, from a file (<code>filesystem</code>) or from the Windows certificate store (<code>system</code>).</td></tr><tr><td>3001</td><td>TLS strict verification disabled</td><td>Notice</td><td><code>TlsVerifyStrict</code> is absent (<code>compat</code>) or <code>false</code> (<code>explicit</code>). Set it to <code>true</code> once the certificate has a SAN and the <em><strong>Server Authentication</strong></em> EKU.</td></tr><tr><td>3002</td><td>Certificate rejected</td><td>Notice</td><td>A certificate of the Windows certificate store was skipped because it failed a check. The <code>reason_code</code> field gives the reason, such as a missing SAN or EKU.</td></tr><tr><td>3005</td><td>TLS certificate name mismatch</td><td>Notice</td><td><code>Hostname</code> doesn't match <code>TlsCertificateSubjectName</code>. Not a problem if the host name is in the SAN of the certificate.</td></tr><tr><td>3006</td><td>No usable certificate found</td><td>Critical</td><td>No certificate of the Windows certificate store can be used. The <code>issues</code> field lists why each was skipped. See <a href="https://docs.devolutions.net/gateway/guides/certificates/windows-certificate-store.md">Use the Windows certificate store</a>.</td></tr><tr><td>5001</td><td>JWT rejected</td><td>Warning</td><td>A token was refused: wrong signature (<code>bad_signature</code>, usually a <code>provisioner.pem</code> that isn't the public key of Devolutions Server or Devolutions Cloud) or a token used again (<code>unexpected_replay</code>).</td></tr><tr><td>9001</td><td>Debug options enabled</td><td>Warning</td><td><code>gateway.json</code> contains options reserved for Devolutions development. Remove them from a production gateway.</td></tr><tr><td>9002</td><td>XMF not found</td><td>Warning</td><td>The video processing library couldn't be loaded. Recordings are kept but WebM recordings aren't remuxed and live shadowing doesn't work. Reinstall Devolutions Gateway, or check <code>DGATEWAY_LIB_XMF_PATH</code>.</td></tr></tbody></table>

Events are written by the release builds of Devolutions Gateway published by Devolutions.

### Windows service events

The Windows Service Control Manager logs service problems in ***Windows Logs*** – ***System***, not under the `Devolutions Gateway` source. Events 7000, 7038 and 1069 from the Service Control Manager mean the service account couldn't sign in, often because of a wrong or expired password. See [Install on Windows](https://docs.devolutions.net/gateway/for-administrators/install/windows.md).

### Installer log

Run the Windows installer with a log to diagnose an installation:

```powershell
msiexec /i DevolutionsGateway-<version>-x64.msi /l*v gateway_install.log
```

## Logs in Devolutions Server

Devolutions Server records gateway events in its activity logs and system logs, with these event IDs:

<table><thead><tr><th width="120">ID</th><th>TEXT</th></tr></thead><tbody><tr><td>106001</td><td>"Gateway Created: GatewayId={GatewayId}, GatewayName={GatewayName}, UserId={UserId}"</td></tr><tr><td>106003</td><td>"Gateway Updated: GatewayId={GatewayId}, GatewayName={GatewayName}, UserId={UserId}"</td></tr><tr><td>106004</td><td>"Gateway Deleted: GatewayId={GatewayId}, GatewayName={GatewayName}, UserId={UserId}"</td></tr><tr><td>106005</td><td>"Gateway Online: GatewayId={GatewayId}, GatewayName={GatewayName}" (Information)</td></tr><tr><td>106006</td><td>"Gateway Offline: GatewayId={GatewayId}, GatewayName={GatewayName}" (Warning)</td></tr><tr><td>106007</td><td>"Network scan token issuance denied: …" (Warning): a user who may not use the gateway asked for a network scan.</td></tr><tr><td>106008</td><td>"Network scan token issued: …" (Information)</td></tr><tr><td>107001</td><td>"The Devolutions Gateway session recording automatic cleanup succeeded." followed by the details.</td></tr><tr><td>107002</td><td>The automatic cleanup succeeded with warnings, followed by the details.</td></tr><tr><td>107003</td><td>"{GatewayName} Gateway recording storage disk is {DiskPercentageUsed}% full." (Warning): logged when the recording disk reaches 90 % used.</td></tr><tr><td>108001, 108002, 108003</td><td>"Gateway Farm Created/Updated/Deleted: GatewayFarmId={GatewayFarmId}, GatewayFarmName={GatewayFarmName}, UserId={UserId}"</td></tr><tr><td>121001</td><td>"User {UserName} requested an update for Devolutions Gateway {GatewayName} to version {Version}."</td></tr><tr><td>121002</td><td>"Devolutions Gateway {GatewayName} update to version {Version} has started."</td></tr><tr><td>121003</td><td>"Devolutions Gateway {GatewayName} update to version {Version} failed. Reason: {Reason}" (Error)</td></tr><tr><td>121004</td><td>"Devolutions Gateway {GatewayName} update to version {Version} succeeded."</td></tr><tr><td>121005</td><td>"User {UserName} canceled the Devolutions Gateway {GatewayName} update to version {Version}."</td></tr><tr><td>121006</td><td>"User {UserName} failed to cancel the Devolutions Gateway {GatewayName} update to version {Version}. Reason: {Reason}"</td></tr><tr><td>121007</td><td>"User {UserName} request to update the Devolutions Gateway {GatewayName} to version {Version} failed. Reason: {Reason}"</td></tr></tbody></table>

In the activity log filters, these appear as ***Gateway*** – ***Created***, ***Updated***, ***Deleted***, ***Online***, ***Offline***, ***Session start***, ***Session interrupted***, ***Gateway Farm*** – …, ***Gateway server*** – ***Update requested***, ***Update started***, ***Update succeeded***, ***Update failed***, ***Update canceled***, and ***Devolutions Gateway recording storage disk is almost full***. Entry and vault logs also record "Gateway opened session for entry '{0}' in vault '{1}'" and the matching closed, failed and terminated messages. The ***Devolutions Gateway down*** notification can alert you when a gateway goes offline.

Devolutions Server also logs who viewed gateway data and who got tokens, for example "User '{0}' viewed Devolutions Gateway logs from gateway '{1}'" and "A Devolutions Gateway token has been generated from the gateway '{0}' towards the host '{1}' by '{2}'.".

## Logs in Devolutions Cloud

Devolutions Cloud logs gateway additions, changes and deletions, and the opening, closing, failure and termination of gateway sessions. Updates go through the Devolutions Cloud PAM service, whose log gives the reason of a failed update: "Previous Gateway update failed, view Devolutions Cloud service logs for more information". Devolutions Agent writes its own log for the update itself. See [Application services](https://docs.devolutions.net/cloud/web-interface/administration/configuration-and-security/application-services).

## Client logs (jetsocat)

Remote Desktop Manager reaches Devolutions Gateway through a local proxy program, jetsocat, for website, PowerShell over WinRM, Telnet, HP iLO and Devolutions Gateway tunnel entries. When its window is hidden, jetsocat writes `jmux-proxy_<number>.log` in `%AppData%\jetsocat` on Windows, `~/Library/Application Support/jetsocat` on macOS and `~/.local/share/jetsocat` on Linux, and deletes these files after 5 days. When its window is shown, the log is in that window.

## Next

* [Devolutions Gateway troubleshooting](https://docs.devolutions.net/gateway/help/troubleshooting/general.md)
* [Error messages](https://docs.devolutions.net/gateway/help/troubleshooting/error-messages.md)
* [Files, folders, and services](https://docs.devolutions.net/gateway/reference/files-and-services.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/gateway/help/troubleshooting/logs-and-events.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
