- What is USQL?
- The Four Tables & Field Reference
- Cross-Table Access Rules
- Core Syntax at a Glance
- Use Case Examples
- Key Functions Quick Reference
- Gotchas & Tips
- Known Limitations
- Quick Reference Card
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.
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 |
applicationis NOT a field onusersession. It lives onuseraction,userevent, andusererror. To filter by application fromusersession, useuseraction.application.
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 sumjavascriptErrorCountandcustomErrorCount.
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 |
pageGroupexists only onuserevent— not onuseractionorusersession. Always prefix asuserevent.pageGroupwhen querying fromusersession.
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 |
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.
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.
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 10Always add
WHERE userType = "REAL_USER"to exclude robot and synthetic traffic from business metrics.
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"Sessions by country
SELECT country, COUNT(*) AS "Sessions"
FROM usersession
WHERE userType = "REAL_USER"
GROUP BY country
ORDER BY COUNT(*) DESC
LIMIT 20Sessions 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 10Sessions by OS family
SELECT osFamily AS "OS",
COUNT(*) AS "Sessions"
FROM usersession
WHERE userType = "REAL_USER"
GROUP BY osFamily
ORDER BY COUNT(*) DESCBounce 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 20Average 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 10Top 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 5Visually 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 5p95 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 20p95 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"Apdex distribution across all load actions
SELECT apdexCategory AS "Apdex",
COUNT(*) AS "Count"
FROM useraction
WHERE apdexCategory != "UNKNOWN"
AND type = "Load"
GROUP BY apdexCategoryApdex 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 apdexCategoryFrustrated 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 10Sessions 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 10Full 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 20HTTP 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 20Top 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 20Count 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) ASCDaily 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') ASCPage 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) DESCSession 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')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 usersessionUser 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 usersessionReplace action names with your actual values from the Dynatrace User Actions screen. FUNNEL does not support GROUP BY, ORDER BY, or LIMIT.
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) ASCDaily 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') ASCCustom properties are stored in stringProperties, longProperties, doubleProperties, or dateProperties on both usersession and useraction.
Discover available custom property keys
SELECT DISTINCT KEYS(stringProperties) FROM usersessionPerformance 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| 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. UseCOUNT(*)fromusersessionto count sessions instead.
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.name7. 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.pageGroup8. 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.
- 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
useractionwithusereventorusererrorin one query; only theusersessionparent connects them - No regex — only
LIKEwildcards (%,*,?) andSTARTSWITH - No field-to-field comparisons —
WHERE field1 = field2is unsupported - FUNNEL — no
GROUP BY,ORDER BY,LIMIT,JSON, orSELECT *; max 10 steps; no ordering guarantee between steps
┌────────────────────────────────────────────────────────────────┐
│ 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.