How to check Synthetic Monitor Websocket errors in logs

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
  2. Select Run ActiveGate diagnostics. This may take some time.
  3. Download the generated Support Archive
    :backhand_index_pointing_right: This archive contains Synthetic execution logs, including browser-level logs.
  4. Extract the archive locally

Step 2 – Locate the browser log file

Navigate to:

COLLECTOR/0x____/synthetic/vuc-logs/

Open:

vuc-browser.log

This file contains browser execution details, including WebSocket activity

Step 3 – Identify failed executions

Search for:

TEST_ABORTED

This indicates a failed execution.Example:

WebSocket connection is closed (Status 1001)

:backhand_index_pointing_right: This confirms a WebSocket-related failure.

Step 4 – Extract the VisitId

Within the same log entry, locate:

VisitId = <number>

Example:

6680333610458108891

The VisitId allows you to correlate logs across components.

Step 5 – Correlate with VUP logs

Recent executions

Navigate to:

COLLECTOR/0x____/synthetic/vup-logs/

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

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

Older executions

Navigate to:

COLLECTOR/0x____/synthetic/<font size="2">vup-archivedLogs</font>/

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

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

Search for files containing the same VisitId.

:backhand_index_pointing_right: 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.

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:

What’s Next

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

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

Related reading 

:open_book:  Synthetic Troubleshooting Map

:open_book:  Browser Monitor Wait options

:open_book:  Useful Synthetic ActiveGate logs

:open_book:  Collect a Support Archive for Troubleshooting issues in Dynatrace

38 Likes

Great write up @a_barbera

1 Like

This is really awesome.. @a_barbera

1 Like

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

1 Like