# Agent logs location

#### The application log is a file that records events and actions performed within the application. These files are particularly useful for diagnosing and troubleshooting software issues.

***

## Xopero ONE agent logs

{% hint style="success" %}
Logs can also be retrieved to the **Xopero ONE Management Service** host through the web console.
{% endhint %}

{% hint style="danger" %}
Log files from **Xopero ONE Management Service** (**XMS**) and **Xopero ONE agent** application are stored for **14 days**.
{% endhint %}

Each **Xopero ONE** **agent** application, regardless of the operating system, maintains a dedicated log directory:

1. For **Windows**:

`%ProgramData%\Xopero ONE\Xopero ONE Backup&Recovery Agent\Logs`

2. For **Linux**:

`/opt/XoperoONEBackupAgent/Xopero/Logs`

3. For **MacOS**:

`/Applications/XoperoONE/XoperoONEBackup&RecoveryAgent/device-app/Xopero/Logs`

***

## Log level override

**Xopero ONE Management Service** and **Xopero ONE agent** applications support a system variable that allows overriding the selected log level without the need to create custom images.

The variable that you need to set is called `XOPERO_LOG_LEVEL`.

{% hint style="danger" %}
**All variables are case sensitive.**
{% endhint %}

{% code title="Usage example" overflow="wrap" %}

```bash
XOPERO_LOG_LEVEL=Debug ./Xopero.Device.App
```

{% endcode %}

The available **log levels** are:

* [x] `Trace`
* [x] `Debug`
* [x] `Information`
* [x] `Warning`
* [x] `Error`
* [x] `Critical`
* [x] `None`


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://helpcenter.xopero.com/xopero-one-en/management/log-files/agent-logs-location.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
