Skip to content

About

USQL (User Sessions Query Language) reference and demo guide for Dynatrace classic dashboards

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

USQL — User Sessions Query Language

A Practical Reference & Demo Guide


Table of Contents

  1. What is USQL?
  2. The Four Tables & Field Reference
  3. Cross-Table Access Rules
  4. Core Syntax at a Glance
  5. Use Case Examples
  6. Key Functions Quick Reference
  7. Gotchas & Tips
  8. Known Limitations
  9. Quick Reference Card

What is USQL?

USQL (User Sessions Query Language) is Dynatrace's query language for exploring real user monitoring data. It uses familiar SQL-style syntax — SELECT, FROM, WHERE, GROUP BY — but is purpose-built for Dynatrace's session data model, not a relational database.

You write USQL queries in the User Sessions interface in the Dynatrace web UI, or call them via the REST API (/api/v1/userSessionQueryLanguage/table). The UI provides live autocomplete for fields, functions, and keywords.

Important: USQL only queries closed sessions. Sessions still in progress are not returned.


The Four Tables & Field Reference

usersession fields

One row per complete user session.

Field Type Description
appVersion string Application version recorded during session
applicationType string CUSTOM_APPLICATION, MOBILE_APPLICATION, or WEB_APPLICATION
bounce boolean true if session contains one or fewer user actions
browserFamily string Browser classification
browserMajorVersion string Browser major version number
browserType string Browser type (preferred over deprecated clientType)
carrier string Mobile carrier
city string City derived from IP geolocation
clientTimeOffset integer Client clock offset in milliseconds
connectionType string LAN, MOBILE, OFFLINE, UNKNOWN, or WIFI
continent string Continent from IP geolocation
country string Country from IP geolocation
crashGroupId string Mobile crash group ID; null if no crash
dateProperties object Custom date-type session properties
device string Detected device model
displayResolution string Screen resolution class (e.g., FHD, 4K, UNKNOWN)
doubleProperties object Custom float-type session properties
duration integer Session duration in milliseconds
endReason string DURATION_LIMIT, END_EVENT, EXTENDED_TIMEOUT, TEST_FAILED, TIMEOUT, or USER_ACTION_LIMIT
endTime integer Timestamp of last user action (UTC ms)
hasCrash boolean Session contains a crash
hasError boolean Session contains at least one error
hasSessionReplay boolean Session Replay data available
internalUserId string Internal unique user identifier
ip string IPv4 or IPv6 address
isp string Internet service provider
longProperties object Custom integer-type session properties
manufacturer string Detected device manufacturer
matchingConversionGoals string[] Conversion goals achieved in session
matchingConversionGoalsCount integer Count of conversion goals achieved
newUser boolean First-time vs. returning user
numberOfRageClicks integer Rage click event count
numberOfRageTaps integer Rage tap event count
osFamily string Operating system type
osVersion string Operating system version
region string Region from IP geolocation
rootedOrJailbroken boolean Mobile device security status
screenHeight integer Screen height in pixels
screenOrientation string LANDSCAPE, PORTRAIT, or UNDEFINED
screenWidth integer Screen width in pixels
startTime integer Timestamp of first user action (UTC ms)
stringProperties object Custom string-type session properties
totalErrorCount integer Total error count across entire session
userActionCount integer Total user action count in session
userExperienceScore string FRUSTRATED, SATISFIED, TOLERATED, or UNDEFINED
userId string User-set identifier from session tagging
userSessionId string Unique session identifier
userType string REAL_USER, ROBOT, or SYNTHETIC

application is NOT a field on usersession. It lives on useraction, userevent, and usererror. To filter by application from usersession, use useraction.application.


useraction fields

One row per user action (page load, XHR request, route change) within a session.

Field Type Description
apdexCategory string FRUSTRATED, SATISFIED, TOLERATING, or UNKNOWN
application string Application name from detection rules
cdnBusyTime integer CDN resource wait time in milliseconds
cdnResources integer CDN-sourced resource count
cumulativeLayoutShift number CLS score for the page
customErrorCount integer Custom-instrumented error count during action
dateProperties object Custom date-type action properties
documentInteractiveTime integer Time until document became interactive (ms)
domCompleteTime integer DOM completion time (ms)
domContentLoadedTime integer DOM content loaded time (ms)
domain string DNS domain where action occurred
doubleProperties object Custom float-type action properties
duration integer Action duration in milliseconds
endTime integer Action end timestamp (UTC ms)
firstInputDelay integer Browser response latency to first input (ms)
firstPartyBusyTime integer First-party server resource wait time (ms)
firstPartyResources integer First-party resource count
frontendTime integer Frontend rendering duration (ms)
hasCrash boolean Crash occurred during this action
internalApplicationId string Dynatrace application entity ID
internalKeyUserActionId string Key user action entity ID
javascriptErrorCount integer JavaScript error count during this action
keyUserAction boolean Action is marked as a key user action
largestContentfulPaint integer LCP metric in milliseconds
loadEventEnd integer Load event end time (ms)
loadEventStart integer Load event start time (ms)
longProperties object Custom integer-type action properties
matchingConversionGoals string[] Conversion goals achieved by this action
name string Action name or page name loaded
navigationStart integer Navigation start timestamp (UTC ms)
networkTime integer Data transfer duration (ms)
requestErrorCount integer Failed HTTP request count during this action (4xx/5xx)
requestStart integer Request start time (ms)
responseEnd integer Response end time (ms)
responseStart integer Response start time (ms)
serverTime integer Server-side processing duration (ms)
speedIndex integer Average time for all visible page parts to display (ms)
startTime integer Action start timestamp (UTC ms)
stringProperties object Custom string-type action properties
targetUrl string Destination URL for this action
thirdPartyBusyTime integer Third-party resource wait time (ms)
thirdPartyResources integer Third-party resource count
totalBlockingTime integer Deprecated. Browser blocking time between FCP and interactivity (ms)
type string Custom, EndVisit, Error, Load, RageClick, SyntheticHiddenAction, UserSessionProperties, VisitTag, or Xhr
userActionPropertyCount integer Total custom property count on this action
visuallyCompleteTime integer Time until visual completeness (ms)

requestErrorCount = failed HTTP requests (4xx/5xx) only. For a full error picture, also sum javascriptErrorCount and customErrorCount.


userevent fields

One row per event (page change, rage click, custom event) within a session.

Field Type Description
application string Application name from detection rules
domain string DNS domain where event occurred
internalApplicationId string Dynatrace application entity ID
metadata string Supplementary event data
name string Event name
page string Page name during a page change event
pageGroup string Page classification derived from page name
pageReferrer string Source page name for navigation event
pageReferrerGroup string Source page group classification
startTime integer Event timestamp (UTC ms)
type string Behavioral, Crash, Error, PageChange, RageClick, RageTap, UserTag, UserTagFromMetaData, or VisitTag

pageGroup exists only on userevent — not on useraction or usersession. Always prefix as userevent.pageGroup when querying from usersession.


usererror fields

One row per error or crash within a session.

Field Type Description
application string Application name from detection rules
domain string DNS domain where error occurred
internalApplicationId string Dynatrace application entity ID
name string Error name
startTime integer Error timestamp (UTC ms)
type string Behavioral, Crash, Error, PageChange, RageClick, RageTap, UserTag, UserTagFromMetaData, or VisitTag

Cross-Table Access Rules

Primary table (FROM) Can access
usersession useraction.*, userevent.*, usererror.*
useraction usersession.* only
userevent usersession.* only
usererror usersession.* only

Secondary tables cannot access each other — you cannot join useraction to userevent in a single query.

Critical semantic difference

When filtering on a secondary table field from usersession, the condition is satisfied if any record in that sub-table matches — not all of them:

-- Returns sessions that contain BOTH an action named "a" AND an action named "b"
-- (not a single action with both names)
SELECT * FROM usersession
WHERE useraction.name = "login" AND useraction.name = "checkout"

The same query FROM useraction returns zero results — a single action cannot have two names simultaneously.


Core Syntax at a Glance

SELECT <columns or functions>
FROM <table>
WHERE <conditions>
GROUP BY <columns>
ORDER BY <column or function> ASC|DESC
LIMIT <n>

Only SELECT and FROM are required. Everything else is optional.

Annotated example:

SELECT country,                                        -- dimension to group by
       COUNT(*) AS "Sessions",                         -- aggregate with alias
       AVG(useraction.duration) AS "Avg Load (ms)"     -- second aggregate
FROM usersession
WHERE useraction.apdexCategory = "FRUSTRATED"          -- filter rows before aggregating
  AND userType = "REAL_USER"                           -- exclude bots and synthetics
GROUP BY country
ORDER BY COUNT(*) DESC
LIMIT 10

Use Case Examples

Always add WHERE userType = "REAL_USER" to exclude robot and synthetic traffic from business metrics.


KPI Queries

Single aggregates with no GROUP BY — good for at-a-glance numbers.

Total real-user sessions

SELECT COUNT(*) AS "Total Sessions"
FROM usersession
WHERE userType = "REAL_USER"

Sessions with at least one error

SELECT COUNT(*) AS "Error Sessions"
FROM usersession
WHERE hasError = true
  AND userType = "REAL_USER"

Median page load time

SELECT MEDIAN(useraction.duration) AS "Median Load (ms)"
FROM useraction
WHERE type = "Load"

Bounce session count

SELECT COUNT(*) AS "Bounce Sessions"
FROM usersession
WHERE bounce IS true
  AND userType = "REAL_USER"

Who Are My Users?

Sessions by country

SELECT country, COUNT(*) AS "Sessions"
FROM usersession
WHERE userType = "REAL_USER"
GROUP BY country
ORDER BY COUNT(*) DESC
LIMIT 20

Sessions by browser version

SELECT browserMajorVersion AS "Browser Version",
       COUNT(*) AS "Sessions"
FROM usersession
WHERE userType = "REAL_USER"
GROUP BY browserMajorVersion
ORDER BY COUNT(*) DESC
LIMIT 10

Sessions by OS family

SELECT osFamily AS "OS",
       COUNT(*) AS "Sessions"
FROM usersession
WHERE userType = "REAL_USER"
GROUP BY osFamily
ORDER BY COUNT(*) DESC

Bounce sessions by landing page

SELECT useraction.name AS "Page",
       COUNT(*) AS "Bounce Sessions"
FROM usersession
WHERE bounce IS true
  AND userType = "REAL_USER"
GROUP BY useraction.name
ORDER BY COUNT(*) DESC
LIMIT 20

Page Performance Analysis

Average DOM Interactive time by country

SELECT country,
       AVG(useraction.documentInteractiveTime) AS "DOM Interactive (ms)"
FROM usersession
WHERE userType = "REAL_USER"
GROUP BY country
ORDER BY AVG(useraction.documentInteractiveTime) DESC
LIMIT 10

Top server response time by country

SELECT country,
       AVG(useraction.serverTime) AS "Avg Server Time (ms)"
FROM usersession
WHERE userType = "REAL_USER"
GROUP BY country
ORDER BY AVG(useraction.serverTime) DESC
LIMIT 5

Visually complete time by country

SELECT country,
       AVG(useraction.visuallyCompleteTime) AS "Visually Complete (ms)"
FROM usersession
WHERE userType = "REAL_USER"
GROUP BY country
ORDER BY AVG(useraction.visuallyCompleteTime) DESC
LIMIT 5

p95 load time by page

SELECT useraction.name AS "Page",
       PERCENTILE(useraction.duration, 95) AS "p95 Load (ms)",
       COUNT(*) AS "Occurrences"
FROM useraction
WHERE type = "Load"
GROUP BY useraction.name
ORDER BY PERCENTILE(useraction.duration, 95) DESC
LIMIT 20

p95 shows what your slowest 5% of users experience — averages hide outliers.


Side-by-side page comparison using CONDITION

SELECT CONDITION(AVG(useraction.duration), WHERE useraction.name = "Loading of page /checkout") AS "Checkout Avg (ms)",
       CONDITION(AVG(useraction.duration), WHERE useraction.name = "Loading of page /home") AS "Home Avg (ms)"
FROM usersession
WHERE userType = "REAL_USER"

User Experience & Apdex

Apdex distribution across all load actions

SELECT apdexCategory AS "Apdex",
       COUNT(*) AS "Count"
FROM useraction
WHERE apdexCategory != "UNKNOWN"
  AND type = "Load"
GROUP BY apdexCategory

Apdex values: SATISFIED, TOLERATING, FRUSTRATED, UNKNOWN


Apdex breakdown for a specific application

SELECT apdexCategory AS "Apdex",
       COUNT(*) AS "Count"
FROM useraction
WHERE apdexCategory != "UNKNOWN"
  AND application = "your-app-name-here"
GROUP BY apdexCategory

Frustrated sessions by country

SELECT country,
       COUNT(*) AS "Frustrated Sessions"
FROM usersession
WHERE userExperienceScore = "FRUSTRATED"
  AND userType = "REAL_USER"
GROUP BY country
ORDER BY COUNT(*) DESC
LIMIT 10

Error Investigation

Sessions with errors by application

SELECT useraction.application AS "Application",
       COUNT(*) AS "Error Sessions",
       SUM(totalErrorCount) AS "Total Errors"
FROM usersession
WHERE hasError = true
  AND userType = "REAL_USER"
GROUP BY useraction.application
ORDER BY SUM(totalErrorCount) DESC
LIMIT 10

Full error breakdown per action (HTTP + JS + custom)

SELECT useraction.name AS "Action",
       SUM(useraction.requestErrorCount) AS "HTTP Errors",
       SUM(useraction.javascriptErrorCount) AS "JS Errors",
       SUM(useraction.customErrorCount) AS "Custom Errors"
FROM usersession
WHERE useraction.application = "your-app-name-here"
GROUP BY useraction.name
ORDER BY SUM(useraction.requestErrorCount) DESC
LIMIT 20

HTTP errors by action and application

SELECT DISTINCT useraction.name AS "User Action",
                useraction.application AS "Application",
                SUM(useraction.requestErrorCount) AS "HTTP Errors"
FROM usersession
WHERE useraction.requestErrorCount > 0
GROUP BY useraction.application, useraction.name
ORDER BY SUM(useraction.requestErrorCount) DESC
LIMIT 20

Top JavaScript errors by impacted sessions

SELECT usererror.name AS "Error",
       COUNT(*) AS "Impacted Sessions"
FROM usererror
GROUP BY usererror.name
ORDER BY COUNT(*) DESC
LIMIT 20

Count sessions, not occurrences — retry loops inflate occurrence counts without affecting more users.


JavaScript error count by hour

SELECT HOUR(usersession.startTime) AS "Hour",
       usererror.name AS "Error",
       COUNT(*) AS "Count"
FROM usererror
WHERE usererror.name = "Script error."
GROUP BY usererror.name, HOUR(usersession.startTime)
ORDER BY HOUR(usersession.startTime) ASC

Session & Page Counts

Daily session count

SELECT DATETIME(starttime, 'MM-dd', '1d') AS "Date",
       COUNT(*) AS "Sessions"
FROM usersession
WHERE userType = "REAL_USER"
GROUP BY DATETIME(starttime, 'MM-dd', '1d')
ORDER BY DATETIME(starttime, 'MM-dd', '1d') ASC

Page load count by country

SELECT country,
       COUNT(useraction.name) AS "Page Loads"
FROM usersession
WHERE useraction.name = "Loading of page /"
  AND userType = "REAL_USER"
GROUP BY country
ORDER BY COUNT(useraction.name) DESC

Session count for a specific application

SELECT DATETIME(starttime, 'MM-dd', '1d') AS "Date",
       COUNT(*) AS "Sessions"
FROM usersession
WHERE useraction.internalApplicationId = "YOUR_APP_ID_HERE"
  AND userType = "REAL_USER"
GROUP BY DATETIME(starttime, 'MM-dd', '1d')

Funnel & Conversion Analysis

USQL's FUNNEL function counts how many sessions completed each step in order. Drop-off between steps is your abandonment rate at that stage. Supports up to 10 steps.

E-commerce checkout funnel

SELECT FUNNEL(
  useraction.name = "Loading of page /home"         AS "Home",
  useraction.name = "Loading of page /product"      AS "Product View",
  useraction.name = "Loading of page /cart"         AS "Add to Cart",
  useraction.name = "Loading of page /checkout"     AS "Checkout",
  useraction.name = "Loading of page /confirmation" AS "Purchase Complete"
) FROM usersession

User onboarding funnel

SELECT FUNNEL(
  useraction.name = "Loading of page /signup"    AS "Sign Up",
  useraction.name = "Loading of page /verify"    AS "Email Verified",
  useraction.name = "Loading of page /profile"   AS "Profile Setup",
  useraction.name = "Loading of page /dashboard" AS "First Login"
) FROM usersession

Replace action names with your actual values from the Dynatrace User Actions screen. FUNNEL does not support GROUP BY, ORDER BY, or LIMIT.


Time-Based Trends

Hourly session volume

SELECT HOUR(starttime) AS "Hour of Day",
       COUNT(*) AS "Sessions"
FROM usersession
WHERE userType = "REAL_USER"
GROUP BY HOUR(starttime)
ORDER BY HOUR(starttime) ASC

Daily performance trend

SELECT DATETIME(starttime, 'MM-dd', '1d') AS "Date",
       AVG(useraction.duration) AS "Avg Action Duration (ms)",
       COUNT(*) AS "Sessions"
FROM usersession
WHERE userType = "REAL_USER"
GROUP BY DATETIME(starttime, 'MM-dd', '1d')
ORDER BY DATETIME(starttime, 'MM-dd', '1d') ASC

Custom Properties

Custom properties are stored in stringProperties, longProperties, doubleProperties, or dateProperties on both usersession and useraction.

Discover available custom property keys

SELECT DISTINCT KEYS(stringProperties) FROM usersession

Performance by custom segment

SELECT stringProperties.planType AS "Plan",
       AVG(useraction.duration) AS "Avg Load (ms)",
       COUNT(*) AS "Sessions"
FROM usersession
WHERE stringProperties.planType IS NOT NULL
  AND userType = "REAL_USER"
GROUP BY stringProperties.planType

Key Functions Quick Reference

Function Syntax What It Does
COUNT(*) COUNT(*) Counts all matching rows
COUNT(field) COUNT(field) Counts non-null values
SUM SUM(useraction.requestErrorCount) Sums numeric values
AVG AVG(useraction.duration) Mean value
MEDIAN MEDIAN(useraction.duration) Median value
PERCENTILE PERCENTILE(useraction.duration, 95) nth percentile
MIN / MAX MIN(useraction.duration) Minimum or maximum
TOP TOP(userevent.pageGroup, 100) Limits distinct grouped values (default cap: 51)
DATETIME DATETIME(starttime, 'MM-dd', '1d') Formatted date with optional bucket interval
HOUR / DAY / MONTH HOUR(starttime) Extracts a date part
FUNNEL FUNNEL(condition AS "label", ...) Counts sessions reaching each step
CONDITION CONDITION(AVG(f), WHERE ...) Scoped aggregation with inline filter
FILTER AVG(duration) FILTER > 1000 Post-aggregation filter
KEYS KEYS(stringProperties) Returns custom property key names

COUNT(DISTINCT field) is rejected for high-cardinality fields: startTime, endTime, duration, userSessionId, userId, internalUserId, ip, and others. Use COUNT(*) from usersession to count sessions instead.


Gotchas & Tips

1. Only closed sessions are returned. Sessions in progress are invisible to USQL. Wait a few minutes after a test session before querying.


2. Always filter WHERE userType = "REAL_USER". Without this, robot crawlers and synthetic monitors inflate every metric. This is the single most impactful filter to add to any business-facing query.


3. application does not exist on usersession. It lives on useraction, userevent, and usererror. To filter by application from usersession, use useraction.application = "your-app".


4. pageGroup only exists on userevent. It is not available on useraction or usersession. Always reference it as userevent.pageGroup.


5. Cross-table WHERE on usersession uses session-level matching. WHERE useraction.name = "login" AND useraction.name = "checkout" from usersession returns sessions containing both actions — not actions that have both names. The same query FROM useraction returns zero results.


6. FILTER is not WHERE — different stages. WHERE removes rows before aggregation. FILTER operates on the aggregated result after the math.

-- Only surfaces pages where the calculated average exceeds 1000ms
SELECT useraction.name, AVG(useraction.duration) FILTER > 1000
FROM useraction
GROUP BY useraction.name

7. Use TOP(field, n) in SELECT when grouping by high-cardinality fields. The default cap on distinct grouped values is 51. If you have more than 51 values (e.g., many page groups), results will be silently truncated without an error.

SELECT TOP(userevent.pageGroup, 100), COUNT(*) AS "Sessions"
FROM usersession
GROUP BY userevent.pageGroup

8. Integer division truncates. duration and similar fields are integers. 4800 / 1000 returns 5, not 4.8. Perform unit conversions outside USQL if precision matters.


9. Use IN instead of chained OR.

WHERE country IN ("Germany", "France", "Spain", "Italy")

10. Default result limit is 50 — raise it explicitly. Set LIMIT up to 5,000.


11. Daylight Saving Time can skew time-based queries. Use ISO 8601 format with timezone offset when hardcoding timestamps in WHERE clauses to avoid DST conversion errors.


Known Limitations

  • No calculated rates — cannot divide one aggregate by another inline (e.g., errors / total)
  • No redirect path tracking — cannot determine that user went from URL A to URL B
  • No average dwell time per page — USQL cannot compute mean time spent on each individual page within a session
  • No cross-secondary-table access — cannot correlate useraction with userevent or usererror in one query; only the usersession parent connects them
  • No regex — only LIKE wildcards (%, *, ?) and STARTSWITH
  • No field-to-field comparisons — WHERE field1 = field2 is unsupported
  • FUNNEL — no GROUP BY, ORDER BY, LIMIT, JSON, or SELECT *; max 10 steps; no ordering guarantee between steps

Quick Reference Card

┌────────────────────────────────────────────────────────────────┐
│                      USQL QUICK REFERENCE                      │
├────────────────────────────────────────────────────────────────┤
│  SYNTAX                                                        │
│  SELECT <cols/fns> FROM <table>                                │
│    [WHERE <conditions>]                                        │
│    [GROUP BY <cols>]                                           │
│    [ORDER BY <col|fn> ASC|DESC]                                │
│    [LIMIT n]          (default: 50, max: 5000)                 │
├────────────────────────────────────────────────────────────────┤
│  TABLES                                                        │
│  usersession   useraction   userevent   usererror              │
├────────────────────────────────────────────────────────────────┤
│  WHERE "application" LIVES                                     │
│  useraction.application                                        │
│  userevent.application                                         │
│  usererror.application                                         │
│  NOT on usersession directly                                   │
├────────────────────────────────────────────────────────────────┤
│  AGGREGATIONS                                                  │
│  COUNT(*)  COUNT(f)  [COUNT(DISTINCT f) — see restrictions]    │
│  SUM(f)  AVG(f)  MIN(f)  MAX(f)  MEDIAN(f)                     │
│  PERCENTILE(f, n)  TOP(f, n)                                   │
├────────────────────────────────────────────────────────────────┤
│  DATE FUNCTIONS                                                │
│  YEAR(f)  MONTH(f)  DAY(f)  HOUR(f)  MINUTE(f)                │
│  DATETIME(f, 'MM-dd', '1d')                                    │
├────────────────────────────────────────────────────────────────┤
│  WHERE OPERATORS                                               │
│  =  !=  <  >  <=  >=  IS  IS NOT  IS NULL  IS NOT NULL        │
│  LIKE  STARTSWITH  BETWEEN x AND y  IN (a,b,c)  NOT IN        │
│  AND  OR  (parentheses for grouping)                           │
├────────────────────────────────────────────────────────────────┤
│  LIKE WILDCARDS                                                │
│  %  *  → zero or more characters                               │
│  ?      → exactly one character                                │
├────────────────────────────────────────────────────────────────┤
│  SPECIAL                                                       │
│  FUNNEL(cond AS "label", ...)   -- max 10 steps               │
│  CONDITION(AGG(f), WHERE ...)   -- scoped aggregation          │
│  AGG(f) FILTER > n              -- post-aggregation filter     │
│  KEYS(stringProperties)         -- custom property keys        │
│  JSON                           -- raw session JSON export     │
├────────────────────────────────────────────────────────────────┤
│  CROSS-TABLE ACCESS                                            │
│  FROM usersession → useraction.*, userevent.*, usererror.*     │
│  FROM useraction  → usersession.*  (only)                      │
│  FROM userevent   → usersession.*  (only)                      │
│  FROM usererror   → usersession.*  (only)                      │
├────────────────────────────────────────────────────────────────┤
│  REMEMBER                                                      │
│  • Only CLOSED sessions are returned                           │
│  • Filter userType = "REAL_USER" to exclude bots               │
│  • FILTER operates after aggregation; WHERE before             │
│  • COUNT(DISTINCT) rejected for userId, internalUserId, ip,    │
│    startTime, endTime, duration, userSessionId, clientTimeOffset│
│  • No regex; no field-to-field comparisons; no joins           │
│  • GROUP BY distinct values capped at 51 — use TOP(f, n)       │
└────────────────────────────────────────────────────────────────┘

Disclaimer: This guide is AI-assisted and intended for reference and learning purposes only. It may contain inaccuracies, incomplete information, or content that has drifted from current product behavior — always consult the official Dynatrace documentation for authoritative guidance. This is not an official Dynatrace resource.

About

USQL (User Sessions Query Language) reference and demo guide for Dynatrace classic dashboards

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors