pagerduty get-incident-logs
Get logs for an incident
Description
Get logs for a PagerDuty incident
Synopsis
pagerduty get-incident-logs
--site <site>
--id <id>
[--overview]
[--since <since>]
[--until <until>]
Arguments
site
- (string)
Site where this command will be executed
Example: --site "site-1"
Default: input.site
Attributes: required
id
- (string)
incident id
Example: --id "id-1"
Default: _None_
Attributes: required
overview
- (bool)
Get only overview log entries
Example: --overview
Default: false
Attributes: optional
since
- (time)
The start of the date range over which you want to search. Maximum range is 6 months and default is 1 month.
Example: --since "1 month ago"
Default: 1 month ago
Attributes: optional
until
- (time)
The end of the date range over which you want to search. Maximum range is 6 months and default is 1 month.
Example: --until "now"
Default: now
Attributes: optional
Examples
pagerduty get-incident-logs --id "id-1"
Access Control
To use this command, you need access to the following:
Field | Value |
---|---|
Action | "read" |
Service Type | "pagerduty" |
Service Instance | |
Namespace | |
Object Type | "incident" |
Object ID | id |
Please see Access Control for details.