This API call enables the latest version of Dynatrace Log Monitoring for the specified environment.
To execute this request, you need the Service Provider API (ServiceProviderAPI
) permission assigned to your API token. Generate your API token via Cluster Management Console (CMC). To learn how to obtain and use it, see Cluster API - Authentication.
/api/cluster/v2/logMonitoring/{environmentId}/enable
The ID of the environment.
Enabled. Response does not have a body.
Failed. The requested resource doesn't exist.
Minimum memory requirement of 64 GB per node is not met.
The Log Monitoring v2 cannot be enabled because the limit of log events per minute for this cluster is reached. Reduce log event ingestion per minute on other environments, so that at least 1,000 log events per minute are available for this cluster.
In this example, you enable the latest version of Dynatrace Log Monitoring for the environment: 19a963a7-b19f-4382-964a-4df674c8eb8e
.
CURL -X POST "https://myManaged.cluster.com/api/cluster/v2/logMonitoring/19a963a7-b19f-4382-964a-4df674c8eb8e/enable"-H "accept: */*"-H "Authorization: Api-Token abcdefjhij1234567890"
https://myManaged.cluster.com/api/cluster/v2/logMonitoring/19a963a7-b19f-4382-964a-4df674c8eb8e/enable
Response does not have a body.
204