Datadog
Send alerts and logs from the SURF Admin console directly into DataDog SIEM.
Before you start
| Requirement | Detail |
|---|---|
| SURF access | Administrator on the SURF Admin console |
| DataDog access | An account with an Admin role user, needed to create an API key |
Step 1: Open the integration in SURF
- Log in to the SURF Admin console at
https://admin.surf-admin.link/ - In the left menu, navigate to Integrations.
- Search for DataDog, click the gear icon beside the integration and select Add Integration.
The setup dialog asks for a URL, an API key, and the data types to send. Collect the first two from DataDog before continuing.
Step 2: Find your DataDog URL
The URL depends on the region your DataDog account is in. It is visible in your DataDog admin page URL.
| Region | URL |
|---|---|
| US | datadoghq.com |
| EU | datadoghq.eu |
| US3 | us3.datadoghq.com |
| US5 | us5.datadoghq.com |
Step 3: Create a DataDog API key
- Log in to DataDog with an Admin role user.
- Click Go to in the left menu, search for API Keys and open that page.
- Click New Key in the top right corner.
- Enter a name for the key, for example
Surf Integration, and click Create Key. - Click Copy to copy the key to the clipboard, and save it into a temporary file.
- Click Finish.
Step 4: Complete the configuration in SURF
- Return to the DataDog integration setup in SURF Admin.
- Enter the values:
| Field | Value |
|---|---|
| URL | The regional URL from Step 2 |
| API Key | The key created in Step 3 |
| Data to send | Tick the data types required: surf-alerts, surf-logs, surf-applications |
- Click Submit.
DataDog now receives data from SURF.
Step 5: Verify
In the DataDog Log Explorer
Open the Log Explorer in DataDog. Under Service, you should see entries for the data types you enabled: surf-alerts, surf-logs, and surf-applications.
Using a test log
If you need to validate the setup independently of SURF, send a test log directly. Replace the URL and API key with your own.
curl --location 'https://http-intake.logs.datadoghq.com/api/v2/logs?ddtags=text%2Fplain'
--header 'Content-Type: application/json'
--header 'DD-API-KEY: a999a99aa9999a99aa9aa99a99aa9999'
--data '{
"message": "Test log from Postman",
"ddsource": "postman_test",
"service": "test-service",
"status": "info"
}'The entry appears in the Log Explorer under the service test-service.
Troubleshooting
| Symptom | Check |
|---|---|
| No data appears in the Log Explorer | Wrong regional URL. Confirm against the URL of your own DataDog admin page. |
| Authentication failure | The API key was created by a non-Admin user, or was truncated when copied |
| Some data types missing | The corresponding box was not ticked under Data to send |
| Test log works but SURF data does not | The integration was submitted but not enabled in the SURF integrations list |
For anything not covered here, contact the SURF support team.
