builtin:logmonitoring.schemaless-log-metric)
With log metrics, you can use queries to create metrics from logs data for dashboarding, analysis, and custom alerting. Log metrics consume Davis® data units.
Note that newly-defined log metrics are available only for log data ingested after metric creation.
builtin:logmonitoring.schemaless-log-metric
group:log-monitoring.analysis
group:log-monitoring
environment
GET | Managed | https://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:logmonitoring.schemaless-log-metric |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:logmonitoring.schemaless-log-metric | |
Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:logmonitoring.schemaless-log-metric |
To execute this request, you need an access token with Read settings (settings.read
) scope. To learn how to obtain and use it, see Tokens and authentication.
enabled
key
query
measure
OCCURRENCE
ATTRIBUTE
measureAttribute
dimensions
To enable splitting on your metric, add desired dimensions.
You can select a dimension name from the list or set it to any value. To extract fields from logs, you can use log processing (<your-dynatrace-url>/builtin:logmonitoring.log-dpp-rules
).