> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/documentation/use-octoxlabs/activity-logs/system-activites.md).

# System Activites

Read the platform log, filter it by level, source, discovery and module, and clear it when you no longer need it.

System Activities is the technical log of OctoXLabs. Each entry says which part of the platform wrote it, when, how serious it was and what happened. Use it to find out why a connection failed, why a discovery ended with an error, or what AVM, reports and workflows did during a run.

Open it from the left menu: **Activities** > **System Activities**. You need the permission `activities.view_system_log` to see the page and `activities.clear_system_log` to clear logs.

### Read the log

The table shows the newest entries first. Each row has:

| Column           | What it shows                                                                                              |
| ---------------- | ---------------------------------------------------------------------------------------------------------- |
| Level icon       | A colored icon for the severity of the entry.                                                              |
| **Source**       | The part of the platform that wrote the entry, for example an adapter name.                                |
| **Discovery ID** | The discovery the entry belongs to, or `-` if none. Click the number to filter the list to that discovery. |
| **Module**       | The connection name the entry belongs to, or `-`. Click it to filter by that module.                       |
| **Timestamp**    | Date and time of the entry.                                                                                |
| **Level**        | One of **Debug**, **Info**, **Warning**, **Error**, **Critical** or **Fatal**.                             |
| **Message**      | The log message. Double-click a cell to copy it.                                                           |

The page reloads itself every 20 seconds. A line above the table says "Reloading data in {second}. Click to pause." Click it to pause the reload, and click it again to resume.

IMAGEHERE: System Activities with the filter bar, the auto-reload line and a few Error and Warning entries.

### Filter the log

Use the filters at the top of the page. They combine, and the list updates when you change one.

| Filter        | What it does                                                                                                                                                                                                                                                              |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Search**    | Searches the log entries. Type a word and press Enter.                                                                                                                                                                                                                    |
| **Level**     | Shows one level only. The default is **All**.                                                                                                                                                                                                                             |
| **Source**    | Shows one source: **Adapters**, **Device Aggregation**, **User Aggregation**, **AVM**, **Backend API**, **Discovery**, **Enrichments**, **Platform**, **Queries**, **Report**, **System**, **Widgets**, **Workers** or **Workflows**, or any adapter you have configured. |
| **Discovery** | Shows the entries of one discovery. You can pick any discovery, whatever its status.                                                                                                                                                                                      |
| **Module**    | Shows the entries of one connection, chosen by its name.                                                                                                                                                                                                                  |

{% hint style="info" %}
A good way to troubleshoot a failed discovery: open **Discovery**, note its ID, then come back here, set **Discovery** to that ID and **Level** to **Error**. Read the **Source** and **Module** columns to see which adapter or connection failed.
{% endhint %}

### Clear logs

Click **Clear Logs** and confirm with **Yes**. The question reads "Are you sure you want to delete the logs". OctoXLabs deletes the entries that match the filters you have set right now, so clear the filters first if you want to remove everything. The message "Logs cleared" appears when the request has been sent.

{% hint style="warning" %}
Clearing cannot be undone, and it removes only what matches your current filters. If you only want to remove old entries, you do not need to do it by hand: set **Log Keep Days** in **Advanced Settings**.
{% endhint %}

### Keep logs automatically

Under **Settings** > **Product Settings** > **Advanced Settings**, **Log Keep Days (Unlimited: 0)** controls how many days of system logs OctoXLabs keeps. A scheduled job deletes older entries, and 0 keeps logs without a time limit. See Advanced Settings. The **Log Level** setting under **Settings** > **Discovery Settings** controls how detailed the log is. See Discovery Settings.

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>User Activities</strong></td><td>See who did what in the console.</td><td></td></tr><tr><td><strong>Discovery and Aggregation</strong></td><td>Understand the runs behind the log entries.</td><td></td></tr><tr><td><strong>Advanced Settings</strong></td><td>Set Log Keep Days and the log level.</td><td></td></tr></tbody></table>
