Facets are quick filters for log data. They correspond to log attribute key-value pairs detected in your environment and are grouped by facet categories. The most important DQL field IDs are grouped by default in predefined categories. Facets also help you estimate the amount of log data corresponding to each attribute.
To query logs in your environment with facets
Go to
Logs.
Expand facet groups like “Core” or “Log source”.
Expand the facet relevant for your query, like “Status”.
Select values relevant for your query, like “Error” and “Warning”.
Observe how the filters are generated in the filter field.
Select as many facets as needed for your query.
Within a single facet, selected values are combined using the OR operator. This means logs matching any of the selected values for that facet will be included.
Between different facets, values are combined using the AND operator. This means logs must match at least one value from each selected facet to be included.
Press Run query to see logs from your environment based on your filter.
You can enrich logs at ingest with primary tags and query them via primary_tags.* fields.
To filter logs using primary tags
team) rather than the full field name (primary_tags.team).primary_tags.team = "payments" in the filter field.Type tag in the filter field to see autosuggestions for primary tag keys.
Behavior notes:
When you open a single log record, primary_tags.* fields are grouped under a dedicated Primary tags section, separate from core fields and cloud/Kubernetes metadata.
AWS, Azure, GCP, and Kubernetes tags that aren't promoted to primary tags are hidden facets by default, grouped by source.
To display cloud or Kubernetes tags as facets
Once visible, these facets work the same way as primary tags: expand the group, select values, and observe the Filter field.
| Facet group | Field prefix | Example |
|---|---|---|
AWS |
|
|
Azure |
|
|
GCP |
|
|
Kubernetes namespace annotations |
|
|
Kubernetes namespace labels |
|
|
Kubernetes pod annotations |
|
|
Kubernetes pod labels |
|
|
Kubernetes workload annotations |
|
|
Kubernetes workload labels |
|
|
To get a sense of how many logs with specific attributes there are in your environment
The numbers displayed for each facet value represent the approximate number of logs based on your last query filters. If you see the '~' symbol, it indicates that Dynatrace is using sampling when reading log data to improve responsiveness.
Example:
k8s.namespace.name = "astroshop" status = "Error"k8s.container.nameTo manage which facets of your environment are displayed
If you have previously modified the facets, to revert to the default settings for facets in your environment