# Track logs

When a learner plays a track, events such as a sandbox provisioning, setup scripts, and more are captured within track logs.&#x20;

## View track logs

You can view track logs using the Web UI or the Instruqt CLI.

{% tabs %}
{% tab title="🌐 Web UI" %}

1. Select the track you want to view logs for.
2. In the **Statistics** section, near the bottom left of the Track Dashboard, select **Logs**.
3. Input a date range, severity level, and sandbox ID (optional).
4. Click **Apply**.
   {% endtab %}

{% tab title="💻 Instruqt CLI" %}

1. Run the following command to view all logs for a track:

   ```bash
   instruqt track logs <TRACK_SLUG>
   ```
2. Filter the date range of logs using the `--since` flag:

   ```
   instruqt track logs <TRACK_SLUG> --since 6h
   ```
3. Filter specific sandbox logs using the `--participant-id` flag:

   ```
   instruqt track logs <TRACK_SLUG> --since 6h --participant-id 88ewfsfsdf89
   ```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
You can determine the ID of a sandbox through the `_SANDBOX_ID` environment variable, present in all Instruqt sandboxes. Simply run `echo $_SANDBOX_ID` in a terminal tab.
{% endhint %}


---

# 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://docs.instruqt.com/tracks/manage/viewing-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.
