# How to check Synthetic Monitor Websocket errors in logs

**URL:** <https://community.dynatrace.com/t/how-to-check-synthetic-monitor-websocket-errors-in-logs/39635>\
**Category:** Troubleshooting\
**Tags:** browser-monitors, synthetic-monitoring, private-synthetic-locations\
**Created:** [May 26, 2023, 10:34am UTC](https://community.dynatrace.com/t/how-to-check-synthetic-monitor-websocket-errors-in-logs/39635 "2023-05-26T10:34:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![a\_barbera](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/a_barbera/32/824_2.png) [@a\_barbera](https://community.dynatrace.com/u/a_barbera)\
**Post date:** [May 26, 2023, 10:34am UTC](https://community.dynatrace.com/t/how-to-check-synthetic-monitor-websocket-errors-in-logs/39635/1 "2023-05-26T10:34:22Z")

</div>

## Summary

If your Dynatrace Synthetic Browser Monitor fails due to **WebSocket connection issues** , the error is not always visible in the UI.

This guide shows you how to:

- Locate the correct **ActiveGate logs**
- Identify **WebSocket errors (e.g., status 1001)**
- Use the **VisitId** to trace failures across logs
- Pinpoint the exact step where the failure occurred

### Step 1 – Download Synthetic logs from ActiveGate

1. Go to **Deployment Status**  
 ![a_barbera_0-1683560261401.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/f/9f0f42d8d6c0e33500d993f6c769686df556a3d4.jpeg)
2. Select **Run ActiveGate diagnostics.** &nbsp;This may take some time.  
 ![a_barbera_1-1683560323939.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/1cbe2a8d213eb4fb5704534b5801995d18cedf21.png)
3. Download the generated **Support Archive  
 👉 This archive contains Synthetic execution logs, including browser-level logs.**
4. Extract the archive locally

 ![a_barbera_2-1683560936171.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/b/cb7b17ae66fc1855f2d45475a504a4eac30e60a3.png)

### Step 2 – Locate the browser log file

Navigate to:

```auto
COLLECTOR/0x ____ /synthetic/vuc-logs/

```

Open:

```auto
vuc-browser.log

```

This file contains **browser execution details** , including WebSocket activity

 ![a_barbera_4-1683561169720.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/a/0acc9ac35db7b449b429387917f03d441fe28b17.png)

### Step 3 – Identify failed executions

Search for:

```auto
TEST_ABORTED

```

This indicates a failed execution.Example:

```auto
WebSocket connection is closed (Status 1001)

```

👉 This confirms a WebSocket-related failure.

 ![a_barbera_0-1685100778094.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/f/df2b2dcaeac77c9760b38a5018ccc96fcad90bba.png)

### Step 4 – Extract the VisitId

Within the same log entry, locate:

```auto
VisitId = <number>

```

Example:

```auto
6680333610458108891

```

The **VisitId** allows you to correlate logs across components.

### Step 5 – Correlate with VUP logs

#### Recent executions

Navigate to:

```auto
COLLECTOR/0x ____ /synthetic/vup-logs/

```

Search for files containing the same **VisitId**.👉 Only recent executions, the last hour or 2, are available in this archive.&nbsp;Later on, we will see how it is possible to check older executions.

 ![a_barbera_0-1685102280024.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/4/64d867e2af666f765f1f73b16447b61586a3ca93.png)

**The number of the VisitId is in the middle of the file names**.

 ![a_barbera_3-1685102438106.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/e1b8f3a2c00205869eb6fac824dee3cbdd77e33d.png)

#### Older executions

Navigate to:

```auto
COLLECTOR/0x ____ /synthetic/<font size="2">vup-archivedLogs</font>/

```

In this folder, we will see other folders named Dates and Hours:

 ![a_barbera_1-1684135589169.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/a/2a21a8ecbf155fad0312d3d2ec1880f02a1b3f3a.png)

Open the file for the day and hour that the execution occurred.

Search for files containing the same **VisitId**.

👉 The time on the files uses the timezone the ActiveGate is using.

### Step 6 – Identify the failing step

Inside the matching file, search for:

- `Index`
- `Step`
- `Type`

These help identify:

- The last executed step
- Where the test stopped

Example:

- Failure between **Step 42 → Step 43**  
→ Indicates where to investigate or adjust the monitor.

 ![a_barbera_4-1685102504572.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/8/7831159ed36be49c6d8a2f9a50a65d0c3b3684c0.png)

## Resolution

In some cases, **WebSocket-related failures are not caused by connectivity issues** , but by how the Synthetic Browser Monitor handles timing between steps. Things you can try:

- Adjust the wait condition for the event. You can find the options [here](https://docs.dynatrace.com/docs/observe/digital-experience/synthetic-monitoring/browser-monitors/browser-clickpath-events#wait).
- For clicks, try using a java script event. See&nbsp;[How to perform a click event using Javascript on browser clickpath synthetic monitors.](https://community.dynatrace.com/topic/244503)

## 

What’s Next

If the issue persists after trying JavaScript and trusted events, open a&nbsp; **support chat or ticket** &nbsp;and provide:

- A link to the affected monitor
- The selector and JavaScript used
- A reference to this article

### **Related reading** &nbsp;

📖&nbsp;&nbsp;[Synthetic Troubleshooting Map](https://community.dynatrace.com/topic/250426)

📖&nbsp;&nbsp;[Browser Monitor Wait options](https://docs.dynatrace.com/docs/observe/digital-experience/synthetic-monitoring/browser-monitors/browser-clickpath-events#wait)

📖&nbsp;&nbsp;[Useful Synthetic ActiveGate logs](https://community.dynatrace.com/topic/214478)

📖&nbsp;&nbsp;[Collect a Support Archive for Troubleshooting issues in Dynatrace](https://community.dynatrace.com/topic/252022)

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [May 26, 2023, 2:19pm UTC](https://community.dynatrace.com/t/how-to-check-synthetic-monitor-websocket-errors-in-logs/39635/2 "2023-05-26T14:19:02Z")

</div>

Great write up&nbsp;[@a\_barbera](https://community.dynatrace.com/user/55875)

---

<div class="post-metadata">

**Author:** ![sujit\_k\_singh](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sujit\_k\_singh](https://community.dynatrace.com/u/sujit_k_singh)\
**Post date:** [October 21, 2023, 10:37pm UTC](https://community.dynatrace.com/t/how-to-check-synthetic-monitor-websocket-errors-in-logs/39635/3 "2023-10-21T22:37:46Z")

</div>

This is really awesome..&nbsp;[@a\_barbera](https://community.dynatrace.com/user/55875)

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 4, 2023, 5:27pm UTC](https://community.dynatrace.com/t/how-to-check-synthetic-monitor-websocket-errors-in-logs/39635/4 "2023-11-04T17:27:10Z")

</div>

Thank you very much for this advice! It came in handy!
