Problems
A problem groups related alert events that share a root cause and impact. The problem record tells you what fired, when, on which entities, with what impact, and which entity the automated analysis names as the root cause. It does not prove why: that attribution names an entity, not a mechanism, and it can be wrong. The evidence comes from the expert skills in the Routing Table.
Find Your Entry Point
| The request | Start with |
|---|---|
| Root cause analysis of one problem | Before You Start, Specific Problem Details, the Routing Table, then Problem-Scoped Checks |
| Whether one entity is healthy, at a given time or now | Before You Start, then entity-health-check.md |
| What is failing right now, which problems come first | Active Problem Triage in impact-analysis.md |
| Which problem has the largest impact, the worst or biggest problem | Largest Impact in impact-analysis.md |
| Why alert events merged or split, trends, recurring causes | The matching reference in When to Load References |
Essential Rules
- Filter duplicates:
filter not(dt.davis.is_duplicate)right after the fetch. - Status is
"ACTIVE"or"CLOSED", never"OPEN". - Always set a time range; start problem lookups at 7 days, or older when the ID says so (see Specific Problem Details), and widen in one step, not several.
- Return
display_idin every problem result, so each problem can be linked. - Compare entity IDs as IDs: entries in
smartscape.affected_entities[][id]anddt.smartscape.serviceare Smartscape IDs. Compare them withtoSmartscapeId("..."), and convert them withtoString()before string functions such asstartsWithormatchesPhrase. A comparison against a plain string returns false without an error. Entitytypeandnameare plain strings, and so areroot_cause_entity_idand the classicaffected_entity_ids.root_cause.smartscape_entity[id]is a Smartscape ID, itstypeandnameare plain strings. - Quote absolute timestamps:
from:"2026-05-18T22:50:00Z"; an unquoted ISO timestamp is a syntax error. - Count by
event.id:dt.davis.problemsanddt.davis.eventshold one record per problem or event in its latest state, so count and list them as they are. A display ID can belong to two different problems, so never deduplicate or group bydisplay_id. The history of updates is indt.davis.problems.snapshots. - Read both entity field families (see Affected Entities: Two Field Families), one
iAny()per family joined withor, never both in one expression. - Write any other DQL with dt-dql-essentials. The queries in this skill show only the problem-specific fields and patterns.
Before You Start
- Get a problem ID, or a start time plus an affected entity or symptom. A time needs a date, a time of day and a time zone. Once you have the problem record, use its timestamps.
- Check how old the problem is. Retention differs per signal and per environment:
| Problem started | Data | Start with |
|---|---|---|
| Under 4 hours ago | All signals available | The investigation |
| 4 to 24 hours ago | Usually available | The investigation; check retention when a query returns nothing |
| 1 to 7 days ago | Logs, spans and events may have expired | A one-row query per signal you need (logs scoped to their bucket) |
| Over 7 days ago | Often only metrics and problem records remain | The same check; base the verdict on what is left and say what is missing |
A signal without data is a blind spot, not proof of absence. When a query returns no rows, check retention, the entity ID and the time window before querying that signal again.
Routing Table: Where to Look for What
Use this table for the first exploration of every problem. Read the problem record first (see Specific Problem Details), list the entity types and symptoms it contains, then match each one below. A skill that matches an entity type or symptom of the problem holds the evidence for it; the problem record alone only repeats the attribution. Match on the skill descriptions you already have; do not open every skill to find out what it does.
By Entity
Match the type of the Smartscape entries, or the affected_entity_types of the classic ones.
| Entity type (Smartscape; classic) | Layer | Expert skill | If it is not available |
|---|---|---|---|
K8S_CLUSTER, K8S_NODE, K8S_NAMESPACE, K8S_DEPLOYMENT, K8S_STATEFULSET, K8S_DAEMONSET, K8S_CRONJOB, K8S_JOB, K8S_POD; dt.entity.cloud_application, cloud_application_instance, cloud_application_namespace, kubernetes_cluster, kubernetes_node |
Kubernetes | dt-obs-kubernetes | dt-obs-hosts for the node |
CONTAINER; dt.entity.container_group_instance |
Container | dt-obs-hosts | |
PROCESS; dt.entity.process_group_instance, process_group |
Process | dt-obs-hosts | |
HOST, DISK (a disk of a host), OS_SERVICE; dt.entity.host, host_group, os:service |
Host | dt-obs-hosts | |
SERVICE; dt.entity.service |
Service | dt-obs-services; dt-obs-tracing for failing or slow requests | |
AWS_*, AZURE_*, GCP_*; dt.entity.aws_lambda_function, relational_database_service, ec2_instance, elastic_load_balancer, azure_redis_cache, any cloud:* type (dt.entity.cloud:aws:account) |
Cloud | dt-obs-aws, dt-obs-azure, dt-obs-gcp | |
dt.entity.custom_device |
Cloud or extension | Classic cloud integrations and extensions both create custom devices: look up its type (see below); a cloud:aws:*, cloud:azure:* or cloud:gcp:* type goes to the Cloud row's skill, any other to dt-obs-extensions |
|
DB_INSTANCE_*, or a slowdown whose time goes to database calls |
Database | databases-recently-degraded-queries, databases-top-queries, databases-active-connections | dt-obs-services and dt-obs-tracing for the database calls |
FRONTEND, a user action; dt.entity.application, custom_application |
Frontend | dt-obs-frontends | |
HTTP_MONITOR, BROWSER_MONITOR, NETWORK_AVAILABILITY_MONITOR, SYNTHETIC_LOCATION; dt.entity.http_check, synthetic_test, multiprotocol_monitor |
Synthetic | No expert skill: dt-obs-frontends covers real users only | The monitor's alert events (dt.davis.event_ids); dt-obs-services for the service the monitor calls |
Any other classic type with a : (dt.entity.sql:postgres_instance) |
Extension | dt-obs-extensions | Report a possible monitoring gap |
| Any affected entity that emits logs in the problem window | Logs | dt-obs-logs |
The name of a custom device does not tell a cloud resource from an extension entity; its type does
(cloud:aws:elasticachecustom, cloud:azure:postgresql:flexibleservers). Look it up over the
problem window, so a device that is gone today is still found:
fetch dt.entity.custom_device, from:"2026-10-21T01:04:00Z", to:"2026-10-21T02:19:00Z"
| filter in(id, {"CUSTOM_DEVICE-370C0C972B733A6B"})
| fields id, entity.name, entity.type
No row: name the device as unrouted in the answer.
Load the skill for the root cause entity first, then dt-obs-logs whenever that entity, or the main affected entity if there is no root cause, emits logs: triggers such as a feature flag, a configuration change or an exception usually show in log lines first. Load dt-dql-essentials before writing any DQL beyond the patterns in this skill. A type not in the table: resolve it from Smartscape rather than guessing, and name it as unrouted in the answer.
By Scenario
| Scenario | Expert skill | Gives you | If it is not available |
|---|---|---|---|
| Disk or storage pressure on a PostgreSQL or MySQL instance | pg-instance-total-size-growth, mysql-instance-total-size-growth | Growth by database and table, bloat versus real data, time until the disk is full | dt-obs-hosts for the disk |
| An LLM or AI agent service: latency, errors, token cost, tool-call failures | dt-obs-genai | Model, prompt, agent and tool-call telemetry | dt-obs-services, dt-obs-tracing |
| Packet loss, retransmits, connectivity failures between hosts | dt-obs-network-flows | Traffic between hosts | Host network metrics in dt-obs-hosts |
| An entity monitored by an extension, or data that stopped arriving | dt-obs-extensions | Extension status and error codes | Report a possible monitoring gap |
| A saturation that builds up over time (disk, memory, capacity) | dt-obs-predictive-analytics | Forecast, time until the limit is reached | The metric trend over 7 days |
| Why the alert fired, or whether it is noise | dt-alerting | Detector configuration | The alert event and its threshold |
| A change to how events group: a new rule, or a split of a problem that groups too much | dt-obs-event-correlation-rules | Correlation rules, backtested against past events | problem-merging.md |
Some skills come with a Dynatrace app: the database skills with the Databases app, and dt-obs-event-correlation-rules with the Problems app. When a skill in these tables is not available, use the fallback and name the missing skill in the answer. Explaining why a given set of events did or did not merge stays in this skill: load problem-merging.md.
Crossing Layers
The root cause entity is often one layer above the mechanism: a service problem caused by its process, a node problem caused by its host. When the symptom is one that a lower layer can cause (resource saturation, restarts concentrated on one node, volume or disk errors, a dependency that is unreachable), load topology.md: it says which layer pairs are worth crossing for which symptoms, and how to follow the link when Smartscape has no edge.
When to Load References
| Reference | Load when |
|---|---|
| topology.md | The cause may sit one layer below the root cause entity (see Crossing Layers) |
| problem-trending.md | Problem frequency over time, recurring problems on a schedule, resolution time trends and P95 durations, creation rates by category |
| problem-correlation.md | Correlating problems with logs or other telemetry, new log patterns in the problem window, events that preceded a problem, links to deployment or config changes; load dt-obs-logs and dt-obs-tracing alongside for the log and trace queries |
| problem-merging.md | Why alert events were or were not merged into one problem, several problems that look like one incident, whether an event allows merging (dt.davis.is_merging_allowed), which event correlation rules grouped the events |
| root-cause-patterns.md | Ranking the entities that cause problems most often, recurring root causes, blast radius per root cause entity, summaries of causes or categories across many problems |
| entity-health-check.md | Whether one entity is healthy at a given time or now, whether an alert on it is new or its daily normal |
| impact-analysis.md | Business impact (affected users, services), blast radius of a root cause entity, active-problem triage, prioritizing by technical and user impact |
Problem-Scoped Checks
Queries that place a problem in its context. Use them for the scope of an investigation: what else failed, what changed, how often it happened before.
What Else Failed at the Same Time
From one hour before the problem started until 15 minutes after. A problem fetch with from:
and to: returns every problem open in that window, also those that started earlier and were
still running. Keep them: an earlier problem on a shared entity is often closer to the cause.
Linked problems: other problems that share an affected entity with this one, or whose root
cause is one of its entities. Put the event.id of this problem (from Specific Problem Details;
it can differ from the display ID) in the first filter, and fill the ID lists as in What Changed
on the Affected Entities:
fetch dt.davis.problems, from:"2026-10-21T01:04:00Z", to:"2026-10-21T02:19:00Z"
| filter not(dt.davis.is_duplicate)
| filter event.id != "2214602945795818393_1794926700807V2"
| fieldsAdd shares_entity =
iAny(in(smartscape.affected_entities[][id], {toSmartscapeId("SERVICE-29A835A543D856F4")}))
or iAny(in(affected_entity_ids[], {"SERVICE-29A835A543D856F4"})),
cause_on_entity =
in(root_cause.smartscape_entity[id], {toSmartscapeId("SERVICE-29A835A543D856F4")})
or in(root_cause_entity_id, {"SERVICE-29A835A543D856F4"})
| filter shares_entity or cause_on_entity
| fields display_id, event.id, event.name, event.category, event.status, event.start, event.end,
shares_entity, cause_on_entity,
root_cause = coalesce(root_cause.smartscape_entity[name], root_cause_entity_name)
| sort event.start asc
| limit 30
Shared entities: entities that appear in several problems of the window, also when this problem does not list them:
fetch dt.davis.problems, from:"2026-10-21T01:04:00Z", to:"2026-10-21T02:19:00Z"
| filter not(dt.davis.is_duplicate)
| fieldsAdd entity = arrayDistinct(arrayConcat(
iCollectArray(toString(smartscape.affected_entities[][id])), affected_entity_ids))
| expand entity
| filter isNotNull(entity) and entity != "ENVIRONMENT-0000000000000001"
| summarize {problems = countDistinct(event.id), categories = collectDistinct(event.category),
display_ids = collectDistinct(display_id, maxLength:10)}, by:{entity}
| filter problems > 1
| sort problems desc
| limit 15
Reading the results:
- Linked problems belong to the same incident. Report them with this one, and start the cause search at the earliest of them, or at the one whose root cause is an entity of this problem.
- An entity in several problems is a candidate shared cause. Check it with its expert skill from the Routing Table before you settle on the entity in front of you. A Kubernetes cluster can appear twice, once per field family, with different IDs.
- No links leave this problem on its own. A large environment has a hundred or more problems open in any hour, so the number of open problems alone says nothing. Many new problems across several categories at once still point to something they share outside the entity lists (network, DNS, cloud provider, platform): count them by category with Problems Open at the Same Time in problem-correlation.md.
What Changed on the Affected Entities
Same window: deployments, configuration and version changes, Kubernetes spec changes, restarts. Changes are often recorded on the process or workload that runs a service, so include those:
fetch events, from:"2026-10-21T01:04:00Z", to:"2026-10-21T02:19:00Z"
| filter in(event.type, {"CUSTOM_DEPLOYMENT", "CUSTOM_CONFIGURATION", "DEPLOYMENT_CHANGED_NEW",
"DEPLOYMENT_CHANGED_CHANGE", "DEPLOYMENT_CHANGED_REMOVED", "PROCESS_RESTART",
"MARKED_FOR_TERMINATION"})
or (event.provider == "KUBERNETES_INFERRED_EVENT" and endsWith(event.name, "spec change"))
| filter dt.smartscape_source.id in [
smartscapeNodes "*"
| filter in(id, {toSmartscapeId("SERVICE-29A835A543D856F4")})
| traverse {runs_on}, {PROCESS}, direction:"forward", fieldsKeep:{id}
| fields id
]
or in(dt.smartscape_source.id, {toSmartscapeId("SERVICE-29A835A543D856F4")})
or in(dt.source_entity, {"SERVICE-29A835A543D856F4"})
| sort timestamp asc
| fields timestamp, event.name, event.type, dt.smartscape_source.id
Put the Smartscape IDs from smartscape.affected_entities into the toSmartscapeId() lists and
the classic IDs from affected_entity_ids into the dt.source_entity list. Leave out
ENVIRONMENT-0000000000000001. Services and hosts may go into both lists with the same ID;
any other classic ID wrapped in toSmartscapeId() matches nothing (see Two Field Families).
Feature flags rarely create events; New Log Patterns in problem-correlation.md finds them.
Recurrence
Earlier problems on the same entity in the last 7 days (see Problems on One Entity). A recurring problem points to a trigger rather than an accident, and changes the fix.
Alert Noise
A problem caused by a detector threshold or a grouping rule is fixed with a detector or correlation rule change, not an application fix.
Problem Categories
Common event.category values:
| Category | Description | Example |
|---|---|---|
| AVAILABILITY | Infrastructure or service unavailable | Web service returns no data, synthetic test actively fails, database connection lost |
| ERROR | Increased error rates beyond baseline | API error rate jumped from 0.1% to 15% |
| SLOWDOWN | Performance degradation | Response time increased from 200ms to 5000ms |
| RESOURCE_CONTENTION | Resource saturation | Container memory at 95%, causing OOM kills |
| CUSTOM_ALERT | Custom anomaly detections | Business KPI (orders/minute) dropped below threshold |
Essential Fields
| Field | Meaning |
|---|---|
display_id |
Human-readable problem ID (P-...) |
event.start, event.end |
Start; end once closed |
event.name, event.description |
Title and description |
event.category |
Problem type (see Problem Categories) |
event.status |
ACTIVE or CLOSED |
dt.davis.affected_users_count |
Affected users |
smartscape.affected_entities |
Affected entities: records with id, type, name |
affected_entity_ids, affected_entity_types, affected_entity_names |
Affected entities on classic-entity environments: IDs and names in parallel, types possibly shorter |
root_cause.smartscape_entity |
Root cause: record with id, name, type |
root_cause_entity_id, root_cause_entity_name |
Root cause on older problems |
dt.davis.event_ids |
The merged alert events |
dt.davis.is_duplicate |
Duplicate record; filter it out |
Common Query Patterns
Specific Problem Details
fetch dt.davis.problems, from:now() - 7d
| filter display_id == "P-XXXXXXXXXX"
| sort timestamp desc
| limit 2
| fields event.id, event.start, event.end, event.status, event.name, event.description,
smartscape.affected_entities, affected_entity_ids, affected_entity_types, affected_entity_names,
dt.davis.affected_users_count,
root_cause.smartscape_entity, root_cause_entity_id, root_cause_entity_name,
dt.davis.event_ids
Two records mean two different problems share the display ID: tell them apart by event.id,
event.name and event.start, and continue with the one the request is about.
Start with 7 days and widen only if the problem is not found: a 7-day lookup reads a few GB, a
30-day lookup on a large environment can read hundreds of GB and take minutes. The display ID
starts with the year and month the problem opened: P-2610... opened in October 2026 (or in the
last minutes of September). When that month is more than 7 days back, skip the 7-day lookup and
start at the last day of the month before, here from:"2026-09-30T00:00:00Z". A lookup that
finds nothing is a wasted call; widen to that date at once instead of trying 14 days, then 30.
Affected Entities: Two Field Families
Environments name the affected entities in one of two ways, and you cannot tell in advance which:
smartscape.affected_entities: records withid(a Smartscape ID),typeandname. Smartscape-native environments fill it on most problems.affected_entity_ids,affected_entity_types(dt.entity.service, ...) andaffected_entity_names: arrays of plain strings. IDs and names are parallel; the types list can be shorter than the IDs, so read an entity's type from its ID prefix, not by position: for most types the prefix is the type in upper case (HOST-isdt.entity.host,CUSTOM_DEVICE-isdt.entity.custom_device). Types with a:carryCUSTOM_DEVICE-IDs too. Classic-entity environments fill them on every problem, and fillsmartscape.affected_entitiesonly on some.affected_entity_idsof only[ENVIRONMENT-0000000000000001]names no specific entity. Every platform-engine problem (rca_engine == "platform") has it, and so do many classic custom alerts. Readsmartscape.affected_entitiesinstead. If that is empty too, report the problem as environment-wide and find its source in the alert events (dt.davis.event_ids).
Read both. Do not merge them in one expression: a [][...] accessor on a missing list makes the
whole expression null, even inside coalesce() or if(). Filter with one iAny() per family,
joined with or. To count the affected entities, take the larger list size,
arrayMax(array(arraySize(smartscape.affected_entities), arraySize(affected_entity_ids))):
some problems fill both lists with different lengths. A problem with neither list gives null, and
a null sorts first in sort ... desc and falls into the last branch of an if(): wrap the count in
coalesce(..., 0) before you sort, rank, score or bucket by it. A flag from iAny() on a missing list is null as well, and null or false stays null: give each iAny() its own coalesce(..., false) before you sort or score by the flag. Services and hosts have the same ID in
both families. Processes and synthetic monitors keep the hex part but change the prefix: PROCESS_GROUP_INSTANCE- is PROCESS-,
HTTP_CHECK- is HTTP_MONITOR-, SYNTHETIC_TEST- is BROWSER_MONITOR-, and
MULTIPROTOCOL_MONITOR- is NETWORK_AVAILABILITY_MONITOR-. toSmartscapeId() keeps the prefix,
so it gives a matching ID only for services and hosts. For Kubernetes and frontend entities the
two IDs are unrelated (KUBERNETES_NODE-45AB... and K8S_NODE-AA0D... name the same node):
match those by name.
Problems carry no list of affected services: dt.smartscape.service is empty on problems. Take
services from entries of type SERVICE or from dt.entity.service.
Problems on One Entity
The pattern for any entity: one iAny() per field family. For a non-service, non-host entity
put its Smartscape ID in the first line and its classic ID in the second.
fetch dt.davis.problems, from:now() - 7d
| filter not(dt.davis.is_duplicate)
| filter iAny(smartscape.affected_entities[][id] == toSmartscapeId("SERVICE-XXXXXXXXX"))
or iAny(affected_entity_ids[] == "SERVICE-XXXXXXXXX")
| summarize problems = count(), by: {event.category, event.status}
Root Cause Analysis Patterns
These queries return the attributed root cause entity, not why it failed: get that evidence from the skill for its type (see the Routing Table) before you write the root cause.
Basic Root Cause Query
The root cause sits in root_cause.smartscape_entity (id, name, type); older problems use
root_cause_entity_id and root_cause_entity_name. The coalesce lines read both; reuse them:
fetch dt.davis.problems, from:now() - 24h
| filter not(dt.davis.is_duplicate)
| fieldsAdd root_cause_id = coalesce(toString(root_cause.smartscape_entity[id]), root_cause_entity_id),
root_cause_name = coalesce(root_cause.smartscape_entity[name], root_cause_entity_name),
root_cause_type = root_cause.smartscape_entity[type]
| fields display_id, event.name, root_cause_id, root_cause_name, root_cause_type,
root_cause_entity_id, root_cause_entity_name
| limit 20
The two fields can name different entities, and the coalesce keeps only the Smartscape one.
For services and hosts they name the same ID. A DISK root cause has its host in
root_cause_entity_id. Kubernetes and frontend entities carry unrelated IDs in the two fields
(see Two Field Families). When the two differ, route both through the Routing Table.
If both are empty, the problem has no root cause attribution: say so and start from the affected entities.
For questions across many problems (which entities cause problems most often, recurring root causes, blast radius per root cause, summaries of causes and categories), load root-cause-patterns.md.
Problems by Entity Type
Filter on the entity type, which is a plain string, in both field families: K8S_DEPLOYMENT or
K8S_NODE in smartscape.affected_entities, dt.entity.cloud_application or
dt.entity.kubernetes_node in affected_entity_types. For cloud resources use the prefix
AWS_ (AZURE_, GCP_) and dt.entity.aws_lambda_function,
dt.entity.relational_database_service, dt.entity.ec2_instance, with startsWith() inside
one iAny() per family. Then load the matching skill from the Routing Table.
Do not filter problems on dt.smartscape_source.id. That field is populated on
dt.davis.events, not on dt.davis.problems: on problems it is null for every record, so the
filter returns nothing and reads as "no Kubernetes problems".
Evidence Rules
When you use query results as evidence:
- Include entity names, not just IDs. Take them from the problem record:
root_cause.smartscape_entity[name],smartscape.affected_entities[][name], oraffected_entity_nameson classic-entity environments.entityName()fails on the problem's ID fields and works ondt.entity.<type>only afterexpand; callget-entity-namefor a few entities, never in a loop. - Ground the root cause in evidence from the domain skills you loaded: log lines, failing spans, pod events, metric values. If you loaded none, or they returned nothing, the root cause rests on the problem's attribution only and has not been confirmed. Quote log lines without tokens, passwords or personal data.
- Use only evidence that belongs to the affected entity. A log line or metric series counts
when its entity field matches:
dt.smartscape.<type>ordt.smartscape_source.id(compare withtoSmartscapeId("...")), or the cloud resource ID and region. A keyword or database-name match across the environment can return another instance with the same symptoms. If the entity has no logs or no series, say so instead of borrowing another entity's. - On a large environment, scope log queries to their bucket. A log query that reaches its
scan limit before it reaches the data returns no rows, and that looks like "no logs". Find the
bucket first with a sampled query over the problem window (
fetch logs, from:..., to:..., samplingRatio:100, the entity filter,summarize count(), by:{dt.system.bucket}), then start the real query, unsampled, with| filter dt.system.bucket == "<bucket>". An entity that logs a few lines a minute vanishes under sampling: if the sampled lookup is empty, repeat it unsampled over 15 minutes of the window. Only an empty unsampled query means "no logs"; one that stopped at its scan limit means "not searched".
Troubleshooting
| Problem | Cause | Solution |
|---|---|---|
Wrong field name (title, status, severity, start) |
SQL-like naming | Use event.name, event.status, event.category, event.start |
| A problem shows no affected entities | The environment fills the other field family | Read both smartscape.affected_entities and affected_entity_ids / affected_entity_types |
| A query mixing both families returns null | A [][...] accessor on a missing list nulls the whole expression |
Use one iAny() per family, joined with or |
| Filter on an entity ID matches nothing, no error | Smartscape ID compared to a plain string | Use toSmartscapeId("..."), or toString() before string functions |
ITERATIVE_EXPRESSION_FOR_FILTER error |
Bare array comparison in filter |
Wrap it in iAny(...) |
INVALID_ENTITY_TYPE or UNKNOWN_FUNCTION from entityName() |
It does not accept the problem's ID fields, and Smartscape-native environments do not have it | Use root_cause.smartscape_entity[name], root_cause_entity_name, smartscape.affected_entities[][name] or affected_entity_names |
| Log query returns no rows | The scan stopped at its limit, or sampling dropped a sparse stream | Filter dt.system.bucket first; if a sampled query is empty, rerun it unsampled over 15 minutes |
