Set up Dynatrace alerts in ITSI
Prerequisites
-
Dynatrace environment with admin access (Settings permissions)
-
Splunk HEC endpoint accessible from Dynatrace (port 8088 or 443)
-
Splunk HEC token with write access to the target index:
-
Name:
Dynatrace Problems -
Source type:
dynatrace:problem -
Index: your target index (for example,
main)
-
Create an alerting profile in Dynatrace
An alerting profile specifies which events trigger the notification.
-
In Dynatrace, navigate to Settings then Alerting then Alerting profiles.
-
Select + Add alerting profile.
-
Configure severity and problem type filters as needed.
-
Select Save changes.
Dynatrace webhook setup
-
Navigate to Settings then Alerting then Notifications.
-
Select + Add notification.
-
Select Webhook as the notification type.
-
Fill in the values:
Field Value Display name Send to Splunk Webhook URL https://<your-splunk-host>:8088/services/collectorAccept any SSL certificate Enable if using a self-signed certificate Call webhook if new events merge into existing problems Enable Call webhook if problem is closed Enable Alerting profile Select the profile created in Step 2. - Under Additional HTTP headers, add the following:
Header name Value Authorization Splunk <YOUR_HEC_TOKEN>Content-Type application/json - Paste the following into the Custom payload field:
JSON
{ "event": {ProblemDetailsJSONv2}, "source": "dynatrace", "sourcetype": "dynatrace:problemV2", }Note:{ProblemDetailsJSONv2}has no quotes around. Dynatrace expands this as a raw JSON object following the Problems V2 API structure. It includesevidenceDetailsandimpactAnalysis, but excludesrecentComments. -
Select Send test notification to verify connectivity.
-
Select Save changes.
Test Dynatrace alert
Trigger or wait for a problem in Dynatrace, then confirm that it appears in Splunk:
index=main sourcetype="dynatrace:problem" | head 10