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.
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.name
To 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