Logo
Akamai APIs API Documentation

Launch a GREP request

POST https://{{host}}/edge-diagnostics/v1/grep

Launches an asynchronous request to fetch logs for an edge server IP address using the grep command. To verify if an IP belongs to an edge server, run the Verify an IP operation first. If you known the exact values to filter the logs by and you want to get the data directly, run the synchronous Get specific logs operation.

 

Body PARAM

Key Datatype Required Description 
accountSwitchKey
string (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status





Curl
curl -X POST 'https://host/edge-diagnostics/v1/grep?accountSwitchKey=' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"arls":{"comparison":"CONTAINS","value":["freeflow.mdt.akamai.com/TopLevel.incr.idx"]},"clientIps":["192.0.2.9"],"cpCodes":[1234567],"edgeIp":"192.0.2.0","end":"2022-03-15T06:08:43.000Z","httpStatusCodes":{"comparison":"EQUALS","value":["200","201"]},"logType":"BOTH","start":"2022-03-15T06:08:40.000Z","userAgents":["firefox"]}'

ENDPOINTS