Enable Log Monitoring
This API call enables the latest version of Dynatrace Log Monitoring for the specified environment.
Authentication
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.
Endpoint
/api/cluster/v2/logMonitoring/{environmentId}/enable
Parameters
The ID of the environment.
Response
Response codes
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.
Example
In this example, you enable the latest version of Dynatrace Log Monitoring for the environment: 19a963a7-b19f-4382-964a-4df674c8eb8e
.
Curl
CURL -X POST "https://myManaged.cluster.com/api/cluster/v2/logMonitoring/19a963a7-b19f-4382-964a-4df674c8eb8e/enable"-H "accept: */*"-H "Authorization: Api-Token abcdefjhij1234567890"
Request URL
https://myManaged.cluster.com/api/cluster/v2/logMonitoring/19a963a7-b19f-4382-964a-4df674c8eb8e/enable
Response body
Response does not have a body.
Response code
204