Get specific logs

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.

Query Params
string
required

IP address that belongs to edge server and you want to get the logs for. To verify if an IP address belongs to an edge server, run the Verify an IP operation. To get the IP, you may need to run the Get domain details with dig or Get diagnostic data of a group operation first. This is the IP value from the answerSection array in the Get domain details with dig operation response or the ip value from the edgeIps array in the collected diagnostic data.

integer
required

CP code you want to get the logs for.

string

Client IP to filter the logs by.

string

Object status codes you want to get the logs for. To see available values, check Object status codes.

integer

HTTP status code to filter the logs by.

string

User agent to filter the logs by.

string

ARL to filter the logs by.

string

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.

string

ISO 8601 timestamp for a point of time in the past when the log search window ends.

string
enum

Enum Record type of the logs. Possible values are either R for client requests to an edge server or F for forward requests from an edge server to the origin.

Allowed:
string

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.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json