---
title: "Script telemetry"
slug: "script-telemetry"
abstract: "How to view details of running web scripts, including the entities they affect."
---
# Script telemetry

Understanding which scripts are being executed in a large implementation is complex. Developers need insight into what caused web scripts to run, how long they took, and what entities they impacted.

To see an overview of the scripts:

1. On the menu bar, click **Manage** :mdiCogOutline:.
2. On the **Manage** page, click **Scripts**.

The **Scripts** page includes quick display boxes to help you understand the script telemetry. The display boxes show the following details:

- **Most run scripts** - listing the top two most run scripts.
- **Longest running scripts** - listing the top two longest-running scripts.

![scripts page showing scripts that have run in content hub](https://doc.sitecore.com/api/markdown-image/ch/en/developers/cloud-dev/images/scripts_page_showing_scripts_that_have_run_in_content_hub.png)

> [!warning]
> There is an expected loss in data beyond a certain limit; the default value is 1000 entries. Suppose a script has been run more than 3000 times. In that case, telemetry does not display the correct numbers because of expected data loss due to how many telemetry data entries can be stored in the cache.

## Reporting

The **Reporting** tab shows a summary report for all scripts. The summary has the following columns for each script:

- *Script Name*
- *Script Type*
- *Total times executed*
- *Total time spent executing script*
- *Average execution time*
- *Slowest time*
- *Fastest time*

A colored indicator shows the execution time of each of the scripts listed on the page:

- *Red*: script execution time longer than 3000ms.
- *Yellow*: script execution time between 500ms and 3000ms.
- *Green*: script execution time below 500ms.

Clicking on a script displays a JSON form, which contains the telemetry details of the script showing:

- `total_execution_count`
- `average_execution_time`
- `total_execution_time`
- `fastest_execution_time`
- `slowest_execution_time`
- `total_error_count`
- `threshold`
- `script_name`
- `script_id`
- `script_type`

![Scripts page reporting tabs showing script details](https://doc.sitecore.com/api/markdown-image/ch/en/developers/cloud-dev/images/scripts_page_reporting_tabs_showing_script_details.png)

## Actions

On the **Reporting** tab, **Actions** :mdiDotsHorizontal: offers the option to:

- **Save search** - saves the current text search, so it can be reused from the **Manage saved search** option.
- **Manage saved search** - displays the previously saved search.
- **Download** - the download option is *disabled* because the report can be downloaded from the **Scripts details** page.

## Auditing

You can view the scripts reporting channel on the **Auditing** tab. You can order your scripts based on the following categories:

- **Timestamp**
- **Severity**
- **ID**
- **User ID**
- **Event type**
- **Script name**
- **Script content**
- **Target ID**
- **Target identifier**
- **Execution time (ms)**
- **Execution source**

You can copy the audit report by clicking on the desired script and selecting the text that appears below, in a JSON format.

![The Script Auditing tab and the audit report](https://doc.sitecore.com/api/markdown-image/ch/en/developers/cloud-dev/images/script-auditing.png)