> 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/agent/help/troubleshooting/logs.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# Logs and Windows Event Log

Find and read the Devolutions Agent logs on Windows, Linux and Docker, raise the log level, and read its Windows Event Log events.

***Devolutions Agent*** writes its own log files, and on Windows it also writes UniGetUI Package Broker policy events in the Windows Event Log. The installer, the RDP Extension and the Desktop Agent have separate logs. This page tells you where each log is and what to send to support.

## Devolutions Agent service log

<table><thead><tr><th width="180">PLATFORM</th><th>LOCATION</th></tr></thead><tbody><tr><td><strong>Windows</strong></td><td><code>C:\ProgramData\Devolutions\Agent\agent*.log</code></td></tr><tr><td><strong>Linux</strong></td><td><code>/etc/devolutions-agent/agent*.log</code>, and the systemd journal: <code>journalctl -u devolutions-agent</code></td></tr><tr><td><strong>Docker</strong></td><td><code>docker logs &#x3C;container></code>, and <code>/etc/devolutions-agent/agent*.log</code> inside the container</td></tr></tbody></table>

* A new file starts when the current one reaches 3 MB; Devolutions Agent keeps the 10 most recent files.
* Once a day, Devolutions Agent deletes log files older than 90 days.
* The first lines written at each start show the Devolutions Agent version.
* The same messages are also written to the standard output, which systemd and Docker collect.
* To write the logs elsewhere, set `LogFile` in `agent.json` to a folder or to a folder and file name prefix, then restart the service.

## Get more details in the log

1. Open `agent.json` as an administrator (`C:\ProgramData\Devolutions\Agent\agent.json` on Windows, `/etc/devolutions-agent/agent.json` on Linux).
2. Set `VerbosityProfile`:

   ```json
   { "VerbosityProfile": "Debug" }
   ```

   <table><thead><tr><th width="150">VALUE</th><th>WHAT IS WRITTEN</th></tr></thead><tbody><tr><td><code>Default</code></td><td>Information messages, warnings and errors.</td></tr><tr><td><code>Debug</code></td><td>Adds the detailed messages of Devolutions Agent. Use it for troubleshooting.</td></tr><tr><td><code>All</code></td><td>Every message, including trace messages.</td></tr><tr><td><code>Quiet</code></td><td>Warnings and errors only.</td></tr></tbody></table>
3. Restart the service: `Restart-Service DevolutionsAgent` on Windows, `sudo systemctl restart devolutions-agent` on Linux.
4. Reproduce the problem, then set `VerbosityProfile` back to `Default`.

To watch the messages live, stop the service and run `devolutions-agent run` from an elevated prompt (`DevolutionsAgent.exe run` on Windows). Press <kbd>Ctrl</kbd>+<kbd>C</kbd> to stop, then start the service again.

{% hint style="info" %}
When `agent.json` can't be read or has a value that is not valid, the service stops before it writes any log. To see the error, run `DevolutionsAgent.exe probe` from an elevated prompt (Windows) or `sudo devolutions-agent probe` (Linux). It prints "\[ERROR] Connectivity probe failed:" followed by the error, such as "invalid config file at" and the path.
{% endhint %}

## Other Devolutions Agent logs on Windows

<table><thead><tr><th width="240">COMPONENT</th><th>LOCATION</th></tr></thead><tbody><tr><td><strong>RDP Extension</strong> (<code>DevolutionsSession.exe</code>)</td><td><code>%APPDATA%\Devolutions\Session\session*.log</code>, in the profile of the user of each RDP session. Same size limits and 90-day cleanup as the service log. Set <code>VerbosityProfile</code> in <code>session.json</code> in the same folder for more details.</td></tr><tr><td><strong>Desktop Agent</strong></td><td><code>%TEMP%\DevolutionsDesktopAgent_&#x3C;id>.log</code>, a new file at each start, in the temporary folder of each user.</td></tr><tr><td><strong>Installer</strong></td><td>The file given to <code>/l*v</code> when you run <code>msiexec</code>. Add <code>/l*v C:\Windows\Temp\DevolutionsAgent_install.log</code> to get one.</td></tr><tr><td><strong>Updates installed by Devolutions Agent</strong></td><td><code>&#x3C;id>.log</code> next to the downloaded package, in the system temporary folder (<code>C:\Windows\SystemTemp</code> or <code>C:\Windows\Temp</code>, depending on the Windows version), for Devolutions Gateway and Devolutions Cloud services; <code>&#x3C;id>.msi.shim.log</code>, <code>&#x3C;id>.msi.install.log</code> and <code>&#x3C;id>.msi.uninstall.log</code> for a Devolutions Agent self-update.</td></tr><tr><td><strong>Last update error</strong></td><td><code>C:\ProgramData\Devolutions\Agent\update_status.json</code> keeps the error of the last failed update of each product. Devolutions Server and Devolutions Cloud read it through Devolutions Gateway.</td></tr></tbody></table>

## Windows Event Log

Devolutions Agent registers the source ***Devolutions Agent*** in the ***Application*** log (***Event Viewer*** – ***Windows Logs*** – ***Application***). The UniGetUI Package Broker writes the following events when someone changes, or tries to change, the package policy.

<table><thead><tr><th width="100">EVENT ID</th><th width="260">MESSAGE</th><th>WHEN</th></tr></thead><tbody><tr><td>8000</td><td>Policy management write attempted.</td><td>A client asked to create or replace the package policy.</td></tr><tr><td>8001</td><td>Policy management write denied.</td><td>The change was refused, with the reason. Only an elevated administrator using an approved, signed client can change the policy.</td></tr><tr><td>8002</td><td>Policy creation failed.</td><td>The first policy couldn't be created.</td></tr><tr><td>8003</td><td>Policy creation succeeded.</td><td>The first policy was created, with its ID and revision.</td></tr><tr><td>8004</td><td>Policy change failed.</td><td>A policy change couldn't be applied.</td></tr><tr><td>8005</td><td>Policy change succeeded.</td><td>A new policy revision replaced the previous one.</td></tr><tr><td>8010</td><td>External policy change applied.</td><td>The policy file was changed outside the broker and the new version was accepted.</td></tr><tr><td>8011</td><td>External policy change rejected.</td><td>The policy file was changed outside the broker and the new version was refused, with the reason.</td></tr><tr><td>8090</td><td>Policy management write denials summarized.</td><td>Many refused changes from the same caller, summarized once per 60 seconds with the number of suppressed events.</td></tr></tbody></table>

Each event includes details such as `ActorSid` (the account), `ActorExe` (the program), `Path` (the policy file) and `Reason`.

## Send logs to support

1. Set `VerbosityProfile` to `Debug`, restart the service and reproduce the problem.
2. Collect the latest `agent*.log` files, `agent.json` and, for an installation problem, the installer log.
3. Remove secrets before sending `agent.json`: the `AppToken` value of `PsuAgent` and any password in `Proxy` addresses. Never send the files of the `certs` folder.
4. Contact [Devolutions support](https://devolutions.net/support/) with the files and the Devolutions Agent version.

## Related pages

* [Error messages](https://docs.devolutions.net/agent/help/troubleshooting/error-messages.md)
* [Configuration file (agent.json)](https://docs.devolutions.net/agent/reference/configuration.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/agent/help/troubleshooting/logs.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.
