Settings API - Log metrics schema table
Log metrics (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.
Schema ID | Schema groups | Scope |
---|---|---|
builtin:logmonitoring.schemaless-log-metric |
| 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 |
Authentication
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.
Parameters
Property | Type | Description | Required |
---|---|---|---|
Enabledenabled | boolean | - | required |
Metric keykey | text | - | required |
Matcherquery | text | - | required |
Metric measurementmeasure | enum |
| required |
AttributemeasureAttribute | text | - | required |
Dimensionsdimensions | set | 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 ( | required |