Logs
Get-EdgeDiagnosticsLogs
Synopsis
Get specific logs.
Syntax
Get-EdgeDiagnosticsLogs [-EdgeIP] <String> [-CPCode] <Int32> [[-ClientIP] <String>] [[-ObjectStatus] <String>] [[-HttpStatusCode] <String>] [[-UserAgent] <String>] [[-ARL] <String>] [[-Start] <String>] [-End] <String> [[-LogType] <String>] [[-EdgeRCFile] <String>] [[-Section] <String>] [[-AccountSwitchKey] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
Using the GREP command returns logs that match the parameters that you specify in your request.
This operation retrieves the data directly. If you don't get detailed information about the logs or want to avoid latency, run the New-EdgeDiagnosticsGrep
operation.
Parameters
‑ARL |
An ARL to filter the logs by. |
‑AccountSwitchKey |
An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use Get-AccountSwitchKey. |
‑CPCode Required |
A CP code you want to get the error statistics for. You need to provide either this value or a |
‑ClientIP |
A Client IP to filter the logs by. |
‑EdgeIP Required |
An IP address that belongs to the edge server and you want to get the logs for. |
‑EdgeRCFile |
Your EdgeGrid resource file to authenticate your command. Defaults to |
‑End Required |
The ISO 8601 timestamp for a point of time in the past when the log search window ends. |
‑HttpStatusCode |
The HTTP status code to filter the logs by. |
‑LogType |
The record type of logs. Possible values are either |
‑ObjectStatus |
Object status codes you want to get the logs for. |
‑Section |
The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to |
‑Start |
The 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. |
‑UserAgent |
A user agent to filter the logs by. |
Related Links
Updated about 6 hours ago