Documentation

Splunk

Send alerts, malware logs, and application data from SURF into Splunk using an HTTP Event Collector token.

Before you start

RequirementDetail
Splunk accessAn account that can add data and create HTTP Event Collector tokens
SURF accessAdministrator on the SURF Admin console

Step 1: Create the HTTP Event Collector token

  1. Log in to your Splunk instance and select Add data.
  2. Select Monitor.
  3. Select HTTP Event Collector and give the token a name, for example surf-alerts.
  4. Leave the remaining fields as default and continue to the end of the wizard.
  5. Copy the Token Value shown on the confirmation screen.

Step 2: Configure the integration in SURF

  1. In SURF Admin, go to Settings → Integrations and open the Splunk setup.
  2. Complete the dialog:
FieldValue
URLThe URL of your Splunk instance
TokenThe HTTP Event Collector token from Step 1
Data to sendTick the data types required: Alerts, Malware Logs, Applications
  1. Click Submit and enable the integration.

Payload reference

The shapes below are what SURF sends, so you can build searches and dashboards against them.

Alerts

{"policy":"DLP","restrictedResource":"https://example.com/article.html",
 "classificationName":"Print","sourceIp":"20.0.30.191","sourceExternalIp":"78.135.60.164",
 "country":"CY","deviceType":"desktop","deviceAgent":"browser","operatingSystem":"GNU/Linux",
 "client":"user@example.com","group":null,"severity":"info"}

Applications

{ "client": "user@example.com", "domain": "figma.com", "accessCount": 18 }

Download and upload

{"client":"user@example.com","type":"Upload","url":"https://example.com","filename":"test.pdf"}

Malware logs

{
  "url": "www.example.com",
  "blockedUrlCount": 12,
  "blockedClients": [ { "clientId": "d96f0037-24ea-4727-b1ea-f881fa86769a", "blockCount": 13 } ],
  "blockedUrls": [ { "tstamp": 1706865975228, "url": "...", "hostname": "www.example.com",
    "domain": "example.com", "category": "Ad Protection",
    "filter": { "result": 1, "source": "static", "raw": "||example.com/lib/*/advertisement" } } ]
}

Navigation

{"active":true,"dataLoaded":1400,"dataReceived":479,"domain":"cnbc.com","openTabs":8,
 "pendingUrl":"https://www.example.com/article.html","transitionType":"link",
 "url":"https://www.google.com/search","client":"user@example.com"}

Troubleshooting

SymptomCheck
No events arriveWrong instance URL, or the HTTP Event Collector is disabled at the Splunk end
Authentication rejectedToken value copied incorrectly, or the token was deleted in Splunk
Some data types missingThe corresponding box was not ticked under Data to send

For anything not covered here, contact the SURF support team.