# Fetching device logs

Logs are generated on every device with the **GitProtect worker** application installed. They can be accessed directly on the device or downloaded to the server running the **GitProtect Management Service**.

The logs can be also fetched directly through the **Management Service** (below guide refers to the on-prem deployment model):

{% stepper %}
{% step %}
Login your **Management Service** panel, open the **Devices** **tab**, and click the **Device details** <img src="/files/ajUcgTQemENFRlnXpZgk" alt="" data-size="line"> button next to the device.

<figure><img src="/files/KXwft1jBv2qVfJp3hGHM" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
In the device info panel, scroll down to the very bottom and click **Device** **details**.

<figure><img src="/files/XPtXSMzAKzlEKgUzpR8s" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
In **Device details** view, click the **Download logs** button at the bottom.

{% hint style="info" %}
In **Device details** view, you can check your device parameters such as CPU, RAM, operating system, IP address, license, application version, and device ID.
{% endhint %}

<figure><img src="/files/qi8e6rQotN2FvcR73N5t" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Downloaded device logs will be saved to the **GitProtect Management Service** directory. The message displayed in the web panel provides the direct path to the \*.tar archive.

<figure><img src="/files/X2zls09Ou5LBptOvb4Jq" alt="logs"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Attach this file to your support ticket or extract its contents to investigate the issue on your own.
{% endstep %}
{% endstepper %}


---

# 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.gitprotect.io/troubleshooting/fetching-device-logs.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.
