Logo
Akamai APIs API Documentation

GREP

Number of APIs: 3


1. 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.



2. Get specific logs

GET https://{{host}}/edge-diagnostics/v1/grep?edgeIp={{edgeIp}}&cpCode={{cpCode}}

Using the grep command, returns logs that match the query parameters. This operation gets the data directly. If you don't have detailed information about the logs or you want to avoid latency, run the Launch a GREP request operation. If you provide request parameters for which Edge Diagnostics doesn't find logs, you get the validation error.



3. Check a GREP request status

GET https://{{host}}/edge-diagnostics/v1/grep/requests/:requestId

Returns the status of the asynchronous Launch a GREP request request. Operations with the SUCCESS status include also the grep logs.



ENDPOINTS