Skip to main content
Akamai

Stream logs from Akamai Edge

Step 1: Create an API Key

Create an API key in Promptwatch. Go to Settings → API Keys in your Promptwatch dashboard.

Step 2: Create a DataStream 2 Dataset

Create a DataStream 2 dataset in Akamai, following these instructions. When configuring data parameters, select JSON as the log format (not “Structured”). See the Akamai documentation for details on this setting. Make sure to allow sending at least the following fields:
  • HTTP status code (statusCode)
  • Request time (reqTimeSec)
  • Request host (reqHost)
  • Request method (reqMethod)
  • Request path (reqPath)
  • Response Content-Type (rspContentType)
  • Query string (queryStr)
  • Client IP (cliIP)
  • User-Agent (UA)
  • Referer (referer)

Step 3: Configure Destination

Use the following information for the Akamai DataStream 2 destination configuration: Endpoint URL:
Content Type: application/json Basic Auth Username: promptwatch Basic Auth Password: YOUR_API_KEY

Step 4: Finish

Once implemented on your end, view your crawler logs in the Promptwatch dashboard.

Optional: Filter on known AI Crawler user agents

Promptwatch identifies AI crawlers automatically and only stores AI crawler visits, all other traffic is discarded. You can safely send all your server logs without worrying about non-crawler data being retained. If you prefer to only forward AI crawler traffic, you can use the user agents listed below to pre-filter on your side. Keep in mind that you’ll need to maintain this list yourself as new crawlers emerge.
For a full list of API response codes, see API Response Codes.