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 query parameters that you specify in your request.
This operation retrieves the data directly. If you don't get detailed information about the logs or you want to avoid latency, run the New-EdgeDiagnosticsGrep
operation.
Parameters
-ARL
ARL to filter the logs by.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-AccountSwitchKey
Account switch key, for use when you have access to multiple accounts and need to specify which one to use. Run the Get-AccountSwitchKey
command to list the account switch keys available to you.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: 12
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-CPCode
CP code you want to get the error statistics for. You need to provide either this value or a URL.
Type: Int32
Parameter Sets: (All)
Aliases: None
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ClientIP
Client IP to filter the logs by.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-EdgeIP
IP address that belongs to edge server and you want to get the logs for.
Type: String
Parameter Sets: (All)
Aliases: None
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-EdgeRCFile
EdgeRC file to authenticate your command. Defaults to ~/.edgerc
.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: 10
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-End
ISO 8601 timestamp for a point of time in the past when the log search window ends.
Type: String
Parameter Sets: (All)
Aliases: None
Required: True
Position: 8
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-HttpStatusCode
HTTP status code to filter the logs by.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-LogType
Record type of the logs. Possible values:
R
for client requests to an edge server.F
for forward requests from an edge server to the origin.
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: R, F
Required: False
Position: 9
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ObjectStatus
Object status codes you want to get the logs for.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Section
EdgeRC section to retrieve authentication credentials from. Defaults to default
.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: 11
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Start
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.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-UserAgent
User agent to filter the logs by.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug
, -ErrorAction
, -ErrorVariable
, -InformationAction
, -InformationVariable
, -OutVariable
, -OutBuffer
, -PipelineVariable
, -Verbose
, -WarningAction
, and -WarningVariable
. For more information, see about_CommonParameters.
Inputs
None
Outputs
System.Object
Related links
Updated 8 days ago