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.

Request Params

KeyDatatypeRequiredDescription
accountSwitchKeystring(Optional) For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

Request Body

{"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"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring