Akamai Integration
Stream Akamai edge logs to Airefs with a DataStream 2 custom HTTPS destination — no code changes to your property.
DataStream 2 pushes edge request logs to Airefs every 30 or 60 seconds, where bot traffic is classified and assets and error responses are dropped server-side. This powers AI Impressions; to also track Clicks, add the client-side tracking script from Site Settings → Tracking Script.
Your access token is in your Airefs account under Site Settings → Access Token.
Step 1: Create the stream
- In Akamai Control Center, open Common Services → DataStream and click Create stream.
- Name the stream, pick the group and contract, and select the properties to monitor.
On the Data sets tab, choose Log format: JSON and select at least:
reqTimeSec,reqId,cliIP,statusCode,reqMethod,reqHost,reqPath,queryStr,UA,referer,rspContentType,country.- On the Delivery tab, choose Custom HTTPS with endpoint URL:
https://api.getairefs.com/v1/logs/akamai- Authentication type BASIC: username
airefs(any value works), password = your access token. Akamai does not allowAuthorizationas a custom header, which is why the token travels as the Basic auth password. - Content type
application/json. Compressed data is optional; both work. - Set the push frequency and click Validate & Save. Akamai sends a validation request; it succeeds when the token is correct.
Step 2: Activate the DataStream behavior
- In Property Manager, edit your property and add the DataStream behavior, selecting your new stream.
- Activate the property version on production. Logs flow once both the stream and the property version are live.
Optional but recommended: enable the Log Request Details behavior (populates referer) and include query parameters in the cache key (populates queryStr) for better attribution.
Verification
Visit a few pages on your property after activation. Events appear in your Airefs dashboard within a few minutes. To check parsing before going live, POST a sample log line to the endpoint with ?dry_run=1 — Airefs returns a per-record verdict including the detected bot classification, without storing anything.
Validate & Save failing? The Basic auth password must be your exact access token. Stream active but no events? Confirm the property version with the DataStream behavior is live on production; propagation can take up to an hour. Need help? Email support@getairefs.com.
