---
updatedAt: 2026-03-01T18:49:43.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/edge-diagnostics/llms.txt
---

# Launch a GREP request

Launches an [asynchronous](ref:asynchronous-processes) 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](ref:post-verify-edge-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](ref:get-grep) operation.

# OpenAPI definition

```json
{
  "externalDocs": {
    "description": "See documentation for Akamai's Edge Diagnostics API",
    "url": "https://techdocs.akamai.com/edge-diagnostics/reference"
  },
  "info": {
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "GREP",
    "version": "v1"
  },
  "openapi": "3.0.0",
  "paths": {
    "/grep": {
      "post": {
        "description": "Launches an [asynchronous](ref:asynchronous-processes) 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](ref:post-verify-edge-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](ref:get-grep) operation.",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Edge Diagnostics API",
          "url": "https://techdocs.akamai.com/edge-diagnostics/reference/post-grep"
        },
        "operationId": "post-grep",
        "parameters": [
          {
            "description": "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).",
            "in": "query",
            "name": "accountSwitchKey",
            "required": false,
            "schema": {
              "example": "1-5C0YLB:1-8BYUX",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "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"
                ]
              },
              "schema": {
                "additionalProperties": false,
                "description": "Collects data to use in the asynchronous `grep` request.",
                "properties": {
                  "arls": {
                    "additionalProperties": false,
                    "description": "Collects ARLs to filter the logs by.",
                    "properties": {
                      "comparison": {
                        "description": "Comparison filter type. Possible values are either `CONTAINS` if you want to get the logs for specific `value` or `NOT_CONTAINS` if you want to exclude specific `value` from logs.",
                        "enum": [
                          "CONTAINS",
                          "NOT_CONTAINS"
                        ],
                        "type": "string"
                      },
                      "value": {
                        "description": "Lists ARLs to filter the logs by in relation to the `comparison` value.",
                        "items": {
                          "minLength": 1,
                          "type": "string"
                        },
                        "minItems": 0,
                        "type": "array"
                      }
                    },
                    "required": [
                      "comparison",
                      "value"
                    ],
                    "type": "object"
                  },
                  "clientIps": {
                    "description": "Lists client IPs to filter the logs by.",
                    "items": {
                      "minLength": 1,
                      "type": "string"
                    },
                    "minItems": 0,
                    "type": "array"
                  },
                  "cpCodes": {
                    "description": "Lists CP codes you want to get the logs for. You need to provide either this value or `hostnames`.",
                    "items": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "minItems": 0,
                    "type": "array"
                  },
                  "edgeIp": {
                    "description": "Edge IP you want to get the logs for. If you don't know if an IP is the edge IP, run the [Verify an IP](ref:post-verify-edge-ip) operation first. You can use the edge server IP value from the `answerSection` array in the [Get domain details with dig](ref:post-dig) operation response or the `ip` value from the `edgeIps` array in the [collected diagnostic data](ref:get-user-diagnostic-data-group-records).",
                    "minLength": 1,
                    "type": "string"
                  },
                  "end": {
                    "description": "ISO 8601 timestamp for a point of time in the past when the log search window ends.",
                    "format": "date-time",
                    "type": "string"
                  },
                  "hostnames": {
                    "description": "Lists hostnames you want to get the logs for. You need to provide either this value or `cpCodes`.",
                    "items": {
                      "minLength": 1,
                      "type": "string"
                    },
                    "minItems": 0,
                    "type": "array"
                  },
                  "httpStatusCodes": {
                    "additionalProperties": false,
                    "description": "Filters the logs by specific HTTP status codes.",
                    "properties": {
                      "comparison": {
                        "description": "Comparison filter type. Possible values are either `EQUALS` if you want to get the logs for specific `value` or `NOT_EQUALS` if you want to exclude specific `value` from logs.",
                        "enum": [
                          "EQUALS",
                          "NOT_EQUALS"
                        ],
                        "type": "string"
                      },
                      "value": {
                        "description": "Lists HTTP status codes to filter the logs by in relation to the `comparison` value.",
                        "items": {
                          "minLength": 1,
                          "type": "string"
                        },
                        "minItems": 0,
                        "type": "array"
                      }
                    },
                    "required": [
                      "comparison",
                      "value"
                    ],
                    "type": "object"
                  },
                  "logType": {
                    "description": "Log record type you want to get. Possible values are: `R` for client requests to an edge server, `F` for forward requests from an edge server to the origin, or `BOTH`.",
                    "enum": [
                      "R",
                      "F",
                      "BOTH"
                    ],
                    "type": "string"
                  },
                  "start": {
                    "description": "ISO 8601 timestamp for a point of time in the past when the log search window starts. You can get the logs from either the last 6 or 24 hours depending on the server and traffic conditions. The recommended 10-minute periods ensure that data fetches quickly and you get the most relevant logs.",
                    "format": "date-time",
                    "type": "string"
                  },
                  "userAgents": {
                    "description": "Lists user agents to filter the logs by.",
                    "items": {
                      "minLength": 1,
                      "type": "string"
                    },
                    "minItems": 0,
                    "type": "array"
                  }
                },
                "required": [
                  "edgeIp",
                  "logType",
                  "start",
                  "end"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "example": {
                  "completedTime": "2021-04-15T07:49:15Z",
                  "createdBy": "jkowalski",
                  "createdTime": "2021-04-15T07:48:30Z",
                  "edgeIpLocation": {
                    "asNumber": 9498,
                    "city": "BANGALORE",
                    "countryCode": "IN",
                    "regionCode": "KA"
                  },
                  "executionStatus": "SUCCESS",
                  "logLinesCount": 2,
                  "request": {
                    "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"
                    ]
                  },
                  "requestId": 365,
                  "result": {
                    "legend": {
                      "fObjectStatus": {
                        "W": "The object TTL was set in response headers."
                      },
                      "fObjectStatus2": {},
                      "fObjectStatus3": {},
                      "logType": {
                        "f": "(f) going forward to forward hostname",
                        "r": "(r) response to client"
                      },
                      "rObjectStatus": {
                        "W": "The object TTL was set in response headers."
                      },
                      "rObjectStatus2": {
                        "N": "The request was processed over an anycast VIP and is marked as zero rated billing request.",
                        "o": "The origin server was contacted for the request.",
                        "x": "Either 'no-store' is turned on by metadata and not disabled by \"!no-store\" in the response or the downstream TTL was set by metadata and not by the response header."
                      },
                      "rObjectStatus3": {}
                    },
                    "logs": [
                      {
                        "arl": "/D/1682/1234567/000/example.com./ERR_READ_TIMEOUT",
                        "bytesReceived": "-",
                        "bytesServed": "568",
                        "clientIp": "192.0.2.6",
                        "contentBytesServed": "250",
                        "contentType": "text/html",
                        "cookie": "-",
                        "cpCode": "1234567",
                        "dateTime": "2021-08-24T10:14:09.306Z",
                        "edgeIp": "192.0.2.10",
                        "error": "ERR_READ_TIMEOUT|before_resp_hdrs",
                        "forwardIp": "-",
                        "hostHeader": "etranslator.edgesuite.net",
                        "httpMethod": "GET",
                        "httpStatus": "504",
                        "logType": "r",
                        "objectSize": "250",
                        "objectStatus": "W",
                        "objectStatus2": "xNo",
                        "objectStatus3": "-",
                        "referer": "-",
                        "sslVersion": "TLSv1.2",
                        "timeTaken": "0",
                        "turnaroundTime": "598",
                        "userAgent": "Mozilla/5.0%20(Macintosh;%20Intel%20Mac%20OS%20X%2010_15_7)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/92.0.4515.159%20Safari/537.36"
                      },
                      {
                        "arl": "/D/1682/1234567/000/example.com./ERR_READ_TIMEOUT",
                        "bytesReceived": "0",
                        "bytesServed": "-",
                        "clientIp": "192.0.2.6",
                        "contentBytesServed": "-",
                        "contentType": "-",
                        "cookie": "-",
                        "cpCode": "1234567",
                        "dateTime": "2021-08-24T10:14:09.356Z",
                        "edgeIp": "192.0.2.10",
                        "error": "-",
                        "forwardIp": "192.0.2.11",
                        "hostHeader": "-",
                        "httpMethod": "GET",
                        "httpStatus": "0",
                        "logType": "f",
                        "objectSize": "-",
                        "objectStatus": "W",
                        "objectStatus2": "-",
                        "objectStatus3": "-",
                        "referer": "-",
                        "sslVersion": "TLSv1.2",
                        "timeTaken": "0",
                        "turnaroundTime": "0",
                        "userAgent": "-"
                      }
                    ]
                  },
                  "suggestedActions": [
                    "Check for long times.",
                    "Check content length/bytes served."
                  ]
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "Collects the `grep` response and details about the request.",
                  "properties": {
                    "completedTime": {
                      "description": "ISO 8601 timestamp indicating when the request was completed.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "createdBy": {
                      "description": "Username who submitted the request.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "createdTime": {
                      "description": "ISO 8601 timestamp indicating when the request was submitted.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "edgeIpLocation": {
                      "additionalProperties": false,
                      "description": "Lists geolocation data of the edge IP used to get the data.",
                      "properties": {
                        "asNumber": {
                          "description": "Autonomous System Number the edge IP maps to.",
                          "minimum": 0,
                          "type": "integer"
                        },
                        "city": {
                          "description": "Closest city within a 50-mile radius the edge IP maps to.",
                          "minLength": 1,
                          "type": "string"
                        },
                        "countryCode": {
                          "description": "ISO 3166 country code the edge IP maps to.",
                          "minLength": 1,
                          "type": "string"
                        },
                        "regionCode": {
                          "description": "ISO 3166 region code the edge IP maps to.",
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "city",
                        "countryCode",
                        "asNumber"
                      ],
                      "type": "object"
                    },
                    "errorResponse": {
                      "additionalProperties": true,
                      "description": "Specifies the reason for `FAILURE` status.",
                      "properties": {
                        "detail": {
                          "description": "Details about the error.",
                          "minLength": 1,
                          "type": "string"
                        },
                        "errors": {
                          "description": "Collects information about problems occurred while fetching the data.",
                          "items": {
                            "minLength": 1,
                            "type": "string"
                          },
                          "minItems": 0,
                          "type": "array"
                        },
                        "status": {
                          "description": "Error status code.",
                          "minLength": 1,
                          "type": "string"
                        },
                        "title": {
                          "description": "Error title.",
                          "minLength": 1,
                          "type": "string"
                        },
                        "type": {
                          "description": "Error type.",
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "title"
                      ],
                      "type": "object"
                    },
                    "executionStatus": {
                      "description": "Status of the request's execution. For the POST operation, possible options are `IN_PROGRESS`, `SUCCESS`, `FAILURE`, or `PARTIAL_SUCCESS`. Check the `warning` array to learn about the reasons for any `PARTIAL_SUCCESS`, and check `errorResponse` for any `FAILURE`. ",
                      "enum": [
                        "IN_PROGRESS",
                        "SUCCESS",
                        "FAILURE",
                        "PARTIAL_SUCCESS"
                      ],
                      "type": "string"
                    },
                    "link": {
                      "description": "Link to GET fetched GREP data after the `retryAfter` interval passes. It occurs only for operations with the `IN_PROGRESS` status.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "logLinesCount": {
                      "description": "Number of fetched logs.",
                      "minimum": 0,
                      "type": "integer"
                    },
                    "request": {
                      "additionalProperties": false,
                      "description": "Specifies your asynchronous `grep` request.",
                      "properties": {
                        "arls": {
                          "additionalProperties": false,
                          "description": "Collects ARLs to filter the logs by.",
                          "properties": {
                            "comparison": {
                              "description": "Comparison filter type. Possible values are either `CONTAINS` if you want to get the logs for specific `value` or `NOT_CONTAINS` if you want to exclude specific `value` from logs.",
                              "enum": [
                                "CONTAINS",
                                "NOT_CONTAINS"
                              ],
                              "type": "string"
                            },
                            "value": {
                              "description": "Lists ARLs to filter the logs by in relation to the `comparison` value.",
                              "items": {
                                "minLength": 1,
                                "type": "string"
                              },
                              "minItems": 0,
                              "type": "array"
                            }
                          },
                          "required": [
                            "comparison",
                            "value"
                          ],
                          "type": "object"
                        },
                        "clientIps": {
                          "description": "Lists client IPs to filter the logs by.",
                          "items": {
                            "minLength": 1,
                            "type": "string"
                          },
                          "minItems": 0,
                          "type": "array"
                        },
                        "cpCodes": {
                          "description": "Lists CP codes you want to get the logs for. You need to provide either this value or `hostnames`.",
                          "items": {
                            "minimum": 0,
                            "type": "integer"
                          },
                          "minItems": 0,
                          "type": "array"
                        },
                        "edgeIp": {
                          "description": "Edge IP you want to get the logs for. If you don't know if an IP is the edge IP, run the [Verify an IP](ref:post-verify-edge-ip) operation first. You can use the edge server IP value from the `answerSection` array in the [Get domain details with dig](ref:post-dig) operation response or the `ip` value from the `edgeIps` array in the [collected diagnostic data](ref:get-user-diagnostic-data-group-records).",
                          "minLength": 1,
                          "type": "string"
                        },
                        "end": {
                          "description": "ISO 8601 timestamp for a point of time in the past when the log search window ends.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "hostnames": {
                          "description": "Lists hostnames you want to get the logs for. You need to provide either this value or `cpCodes`.",
                          "items": {
                            "minLength": 1,
                            "type": "string"
                          },
                          "minItems": 0,
                          "type": "array"
                        },
                        "httpStatusCodes": {
                          "additionalProperties": false,
                          "description": "Filters the logs by specific HTTP status codes.",
                          "properties": {
                            "comparison": {
                              "description": "Comparison filter type. Possible values are either `EQUALS` if you want to get the logs for specific `value` or `NOT_EQUALS` if you want to exclude specific `value` from logs.",
                              "enum": [
                                "EQUALS",
                                "NOT_EQUALS"
                              ],
                              "type": "string"
                            },
                            "value": {
                              "description": "Lists HTTP status codes to filter the logs by in relation to the `comparison` value.",
                              "items": {
                                "minLength": 1,
                                "type": "string"
                              },
                              "minItems": 0,
                              "type": "array"
                            }
                          },
                          "required": [
                            "comparison",
                            "value"
                          ],
                          "type": "object"
                        },
                        "logType": {
                          "description": "Log record type you want to get. Possible values are: `R` for client requests to an edge server, `F` for forward requests from an edge server to the origin, or `BOTH`.",
                          "enum": [
                            "R",
                            "F",
                            "BOTH"
                          ],
                          "type": "string"
                        },
                        "start": {
                          "description": "ISO 8601 timestamp for a point of time in the past when the log search window starts. You can get the logs from either the last 6 or 24 hours depending on the server and traffic conditions. The recommended 10-minute periods ensure that data fetches quickly and you get the most relevant logs.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "userAgents": {
                          "description": "Lists user agents to filter the logs by.",
                          "items": {
                            "minLength": 1,
                            "type": "string"
                          },
                          "minItems": 0,
                          "type": "array"
                        }
                      },
                      "required": [
                        "edgeIp",
                        "logType",
                        "start",
                        "end"
                      ],
                      "type": "object"
                    },
                    "requestId": {
                      "description": "Unique identifier for the `grep` request. Store this value to run [Check a GREP request status](ref:get-grep-request) operation.",
                      "minimum": 0,
                      "type": "integer"
                    },
                    "result": {
                      "additionalProperties": false,
                      "description": "Collects fetched logs.",
                      "properties": {
                        "legend": {
                          "additionalProperties": false,
                          "description": "Descriptions of returned `logType`, `objectStatus`, `objectStatus2`, `objectStatus3` in `r` and `f` log lines.",
                          "properties": {
                            "fObjectStatus": {
                              "description": "Descriptions of the `objectStatus` data in f-line.",
                              "type": "object"
                            },
                            "fObjectStatus2": {
                              "description": "Descriptions of the `objectStatus2` data in f-line.",
                              "type": "object"
                            },
                            "fObjectStatus3": {
                              "description": "Descriptions of the `objectStatus3` data in f-line.",
                              "type": "object"
                            },
                            "logType": {
                              "description": "Description of the `logType` data.",
                              "type": "object"
                            },
                            "rObjectStatus": {
                              "description": "Descriptions of the `objectStatus` data in r-line.",
                              "type": "object"
                            },
                            "rObjectStatus2": {
                              "description": "Descriptions of the `objectStatus2` data in r-line.",
                              "type": "object"
                            },
                            "rObjectStatus3": {
                              "description": "Descriptions of the `objectStatus3` data in r-line.",
                              "type": "object"
                            }
                          },
                          "required": [
                            "logType",
                            "rObjectStatus",
                            "rObjectStatus2",
                            "rObjectStatus3",
                            "fObjectStatus",
                            "fObjectStatus2"
                          ],
                          "type": "object"
                        },
                        "logs": {
                          "description": "Filtered log lines.",
                          "items": {
                            "description": "Items provided as key/value pairs.",
                            "type": "object"
                          },
                          "minItems": 0,
                          "type": "array"
                        }
                      },
                      "required": [
                        "logs",
                        "legend"
                      ],
                      "type": "object"
                    },
                    "retryAfter": {
                      "description": "Number of seconds when the request is estimated to have processed. It occurs only for operations with the `IN_PROGRESS` status.",
                      "minimum": 0,
                      "type": "integer"
                    },
                    "suggestedActions": {
                      "description": "Suggestions on what to do next with the results.",
                      "items": {
                        "minLength": 1,
                        "type": "string"
                      },
                      "minItems": 0,
                      "type": "array"
                    },
                    "warning": {
                      "additionalProperties": false,
                      "description": "Reasons why `executionStatus` is `PARTIAL_SUCCESS`.",
                      "properties": {
                        "key": {
                          "description": "Unique key representing the warning message.",
                          "minLength": 1,
                          "type": "string"
                        },
                        "message": {
                          "description": "Warning message for the `grep` request.",
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "key",
                        "message"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "request",
                    "requestId",
                    "executionStatus",
                    "createdBy",
                    "createdTime"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Process successfully launched.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "The rate limit ceiling for this endpoint.",
                "example": 10,
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "The number of requests left for the time window.",
                "example": 5,
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Provide only one of these members, either `edgeLocationId` or `edgeIp`.",
                  "errors": [
                    {
                      "requestField": "edgeLocationId",
                      "title": "Conflicting values.",
                      "type": "field.conflict"
                    },
                    {
                      "requestField": "edgeIp",
                      "title": "Conflicting values.",
                      "type": "field.conflict"
                    }
                  ],
                  "status": 400,
                  "title": "Incorrect request.",
                  "type": "bad.request.error"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Specifies the errors.",
                  "properties": {
                    "detail": {
                      "description": "Detail about the problem.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "errors": {
                      "description": "[HTTP Problem Details](https://tools.ietf.org/html/rfc9457) objects indicating causes of failure.",
                      "items": {
                        "additionalProperties": true,
                        "description": "Specifies the error that occurred.",
                        "properties": {
                          "requestField": {
                            "description": "Request field name the error refers to. It can be a URL path or query parameter or any request payload field name.",
                            "type": "string"
                          },
                          "requestValues": {
                            "description": "Lists values corresponding to the `requestField`.",
                            "items": {
                              "anyOf": [
                                {
                                  "title": "String",
                                  "type": "string"
                                },
                                {
                                  "title": "Integer",
                                  "type": "integer"
                                },
                                {
                                  "title": "Object",
                                  "type": "object"
                                }
                              ]
                            },
                            "type": "array"
                          },
                          "title": {
                            "description": "Title of the error.",
                            "type": "string"
                          },
                          "type": {
                            "description": "Type of error.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "title"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "requestField": {
                      "description": "Request field name the error refers to. It can be a path or query parameter of the URL or any request payload field name.",
                      "type": "string"
                    },
                    "requestValues": {
                      "description": "Lists values corresponding to the `requestField`.",
                      "items": {
                        "anyOf": [
                          {
                            "title": "String",
                            "type": "string"
                          },
                          {
                            "title": "Integer",
                            "type": "integer"
                          },
                          {
                            "title": "Object",
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    "status": {
                      "description": "HTTP response code.",
                      "type": "integer"
                    },
                    "title": {
                      "description": "Title of the error.",
                      "type": "string"
                    },
                    "type": {
                      "description": "Type of error.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "[Validation error](ref:400)."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Inactive client token",
                  "instance": "https://akab-nedrvuylepskzabx-lv3dgceqqktx3i5b.luna.akamaiapis.net/edge-diagnostics/v1/grep/requests",
                  "status": 401,
                  "title": "Not authorized",
                  "type": "https://problems.luna.akamaiapis.net/-/pep-authn/deny"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Specifies the errors.",
                  "properties": {
                    "detail": {
                      "description": "Detail about the problem.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "errors": {
                      "description": "[HTTP Problem Details](https://tools.ietf.org/html/rfc9457) objects indicating causes of failure.",
                      "items": {
                        "additionalProperties": true,
                        "description": "Specifies the error that occurred.",
                        "properties": {
                          "requestField": {
                            "description": "Request field name the error refers to. It can be a URL path or query parameter or any request payload field name.",
                            "type": "string"
                          },
                          "requestValues": {
                            "description": "Lists values corresponding to the `requestField`.",
                            "items": {
                              "anyOf": [
                                {
                                  "title": "String",
                                  "type": "string"
                                },
                                {
                                  "title": "Integer",
                                  "type": "integer"
                                },
                                {
                                  "title": "Object",
                                  "type": "object"
                                }
                              ]
                            },
                            "type": "array"
                          },
                          "title": {
                            "description": "Title of the error.",
                            "type": "string"
                          },
                          "type": {
                            "description": "Type of error.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "title"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "requestField": {
                      "description": "Request field name the error refers to. It can be a path or query parameter of the URL or any request payload field name.",
                      "type": "string"
                    },
                    "requestValues": {
                      "description": "Lists values corresponding to the `requestField`.",
                      "items": {
                        "anyOf": [
                          {
                            "title": "String",
                            "type": "string"
                          },
                          {
                            "title": "Integer",
                            "type": "integer"
                          },
                          {
                            "title": "Object",
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    "status": {
                      "description": "HTTP response code.",
                      "type": "integer"
                    },
                    "title": {
                      "description": "Title of the error.",
                      "type": "string"
                    },
                    "type": {
                      "description": "Type of error.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "[Authorization error](ref:401)."
          },
          "403": {
            "content": {
              "application/problem+json": {
                "example": {
                  "errors": [
                    {
                      "detail": "You don't have access to the requested URL. Contact your Admin to request access.",
                      "requestField": "url",
                      "title": "Field access denied.",
                      "type": "field.access.denied"
                    }
                  ],
                  "status": 403,
                  "title": "Forbidden request.",
                  "type": "forbidden.request.error"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Specifies the errors.",
                  "properties": {
                    "detail": {
                      "description": "Detail about the problem.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "errors": {
                      "description": "[HTTP Problem Details](https://tools.ietf.org/html/rfc9457) objects indicating causes of failure.",
                      "items": {
                        "additionalProperties": true,
                        "description": "Specifies the error that occurred.",
                        "properties": {
                          "requestField": {
                            "description": "Request field name the error refers to. It can be a URL path or query parameter or any request payload field name.",
                            "type": "string"
                          },
                          "requestValues": {
                            "description": "Lists values corresponding to the `requestField`.",
                            "items": {
                              "anyOf": [
                                {
                                  "title": "String",
                                  "type": "string"
                                },
                                {
                                  "title": "Integer",
                                  "type": "integer"
                                },
                                {
                                  "title": "Object",
                                  "type": "object"
                                }
                              ]
                            },
                            "type": "array"
                          },
                          "title": {
                            "description": "Title of the error.",
                            "type": "string"
                          },
                          "type": {
                            "description": "Type of error.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "title"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "requestField": {
                      "description": "Request field name the error refers to. It can be a path or query parameter of the URL or any request payload field name.",
                      "type": "string"
                    },
                    "requestValues": {
                      "description": "Lists values corresponding to the `requestField`.",
                      "items": {
                        "anyOf": [
                          {
                            "title": "String",
                            "type": "string"
                          },
                          {
                            "title": "Integer",
                            "type": "integer"
                          },
                          {
                            "title": "Object",
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    "status": {
                      "description": "HTTP response code.",
                      "type": "integer"
                    },
                    "title": {
                      "description": "Title of the error.",
                      "type": "string"
                    },
                    "type": {
                      "description": "Type of error.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "[Permission error](ref:403)."
          },
          "405": {
            "content": {
              "application/problem+json": {
                "example": {
                  "title": "Method not allowed",
                  "type": "method.not.allowed"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Specifies the errors.",
                  "properties": {
                    "detail": {
                      "description": "Detail about the problem.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "errors": {
                      "description": "[HTTP Problem Details](https://tools.ietf.org/html/rfc9457) objects indicating causes of failure.",
                      "items": {
                        "additionalProperties": true,
                        "description": "Specifies the error that occurred.",
                        "properties": {
                          "requestField": {
                            "description": "Request field name the error refers to. It can be a URL path or query parameter or any request payload field name.",
                            "type": "string"
                          },
                          "requestValues": {
                            "description": "Lists values corresponding to the `requestField`.",
                            "items": {
                              "anyOf": [
                                {
                                  "title": "String",
                                  "type": "string"
                                },
                                {
                                  "title": "Integer",
                                  "type": "integer"
                                },
                                {
                                  "title": "Object",
                                  "type": "object"
                                }
                              ]
                            },
                            "type": "array"
                          },
                          "title": {
                            "description": "Title of the error.",
                            "type": "string"
                          },
                          "type": {
                            "description": "Type of error.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "title"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "requestField": {
                      "description": "Request field name the error refers to. It can be a path or query parameter of the URL or any request payload field name.",
                      "type": "string"
                    },
                    "requestValues": {
                      "description": "Lists values corresponding to the `requestField`.",
                      "items": {
                        "anyOf": [
                          {
                            "title": "String",
                            "type": "string"
                          },
                          {
                            "title": "Integer",
                            "type": "integer"
                          },
                          {
                            "title": "Object",
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    "status": {
                      "description": "HTTP response code.",
                      "type": "integer"
                    },
                    "title": {
                      "description": "Title of the error.",
                      "type": "string"
                    },
                    "type": {
                      "description": "Type of error.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "[Method not allowed](ref:405)."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "You have exceeded total number of requests configured for this API.",
                  "status": 429,
                  "title": "Too Many Requests",
                  "type": "requests.exceeded.error"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Specifies the errors.",
                  "properties": {
                    "detail": {
                      "description": "Detail about the problem.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "errors": {
                      "description": "[HTTP Problem Details](https://tools.ietf.org/html/rfc9457) objects indicating causes of failure.",
                      "items": {
                        "additionalProperties": true,
                        "description": "Specifies the error that occurred.",
                        "properties": {
                          "requestField": {
                            "description": "Request field name the error refers to. It can be a URL path or query parameter or any request payload field name.",
                            "type": "string"
                          },
                          "requestValues": {
                            "description": "Lists values corresponding to the `requestField`.",
                            "items": {
                              "anyOf": [
                                {
                                  "title": "String",
                                  "type": "string"
                                },
                                {
                                  "title": "Integer",
                                  "type": "integer"
                                },
                                {
                                  "title": "Object",
                                  "type": "object"
                                }
                              ]
                            },
                            "type": "array"
                          },
                          "title": {
                            "description": "Title of the error.",
                            "type": "string"
                          },
                          "type": {
                            "description": "Type of error.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "title"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "requestField": {
                      "description": "Request field name the error refers to. It can be a path or query parameter of the URL or any request payload field name.",
                      "type": "string"
                    },
                    "requestValues": {
                      "description": "Lists values corresponding to the `requestField`.",
                      "items": {
                        "anyOf": [
                          {
                            "title": "String",
                            "type": "string"
                          },
                          {
                            "title": "Integer",
                            "type": "integer"
                          },
                          {
                            "title": "Object",
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    "status": {
                      "description": "HTTP response code.",
                      "type": "integer"
                    },
                    "title": {
                      "description": "Title of the error.",
                      "type": "string"
                    },
                    "type": {
                      "description": "Type of error.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "[Too many requests](ref:429)."
          }
        },
        "summary": "Launch a GREP request",
        "tags": [
          "GREP"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://{hostname}/edge-diagnostics/v1"
    }
  ],
  "tags": [
    {
      "description": "Run synchronous or asynchronous GREP operations to get logs for edge server IPs from either the last 6 or 24 hours depending on the server and traffic conditions.",
      "name": "GREP"
    }
  ],
  "x-readme": {
    "samples-languages": [
      "curl",
      "python",
      "node"
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```

# Sibling pages

* [Get specific logs](https://techdocs.akamai.com/edge-diagnostics/reference/get-grep.md)
* [Check a GREP request status](https://techdocs.akamai.com/edge-diagnostics/reference/get-grep-request.md)