List Logs
List log entries for the specified incident.
An incident represents a problem or an issue that needs to be addressed and resolved.
A Log Entry are a record of all events on your account.
For more information see the .
Basic Parameters
Parameter | Description |
---|---|
ID | ID of the incident. |
Include | Array of additional Models to include in response. |
Is Overview | If true , will return a subset of log entries that show only the most important changes to the incident. |
Since | The start of the date range over which you want to search. |
Time Zone | Time zone in which dates in the result will be rendered. |
Until | The end of the date range over which you want to search. |
Advanced Parameters
Parameter | Description |
---|---|
Limit | The number of results per page. |
Offset | Offset to start pagination search results. |
Total | By default the total field in pagination responses is set to null to provide the fastest possible response times. Set total to true for this field to be populated. See our Pagination Docs for more information. |
Example Output
{
"summary": "Response Example",
"value": {
"log_entries": [
{
"agent": {
"html_url": "https://subdomain.pagerduty.com/services/PIJ90N7",
"id": "PIJ90N7",
"self": "https://api.pagerduty.com/services/PIJ90N7",
"summary": "My Mail Service",
"type": "service_reference"
},
"channel": {
"type": "api"
},
"contexts": [],
"created_at": "2015-11-07T00:14:20Z",
"event_details": {
"description": "Tasks::SFDCValidator - PD_Data__c - duplicates"
},
"html_url": "https://subdomain.pagerduty.com/incidents/PT4KHLK/log_entries/Q02JTSNZWHSEKV",
"id": "Q02JTSNZWHSEKV",
"incident": {
"html_url": "https://subdomain.pagerduty.com/incidents/PT4KHLK",
"id": "PT4KHLK",
"self": "https://api.pagerduty.com/incidents/PT4KHLK",
"summary": "[#1234] The server is on fire.",
"type": "incident_reference"
},
"self": "https://api.pagerduty.com/log_entries/Q02JTSNZWHSEKV?incident_id=PT4KHLK",
"summary": "Triggered through the API",
"teams": [
{
"html_url": "https://subdomain.pagerduty.com/teams/PQ9K7I8",
"id": "PQ9K7I8",
"self": "https://api.pagerduty.com/teams/PQ9K7I8",
"summary": "Engineering",
"type": "team_reference"
}
],
"type": "trigger_log_entry"
}
]
}
}
Workflow Library Example
List Logs with Pagerduty and Send Results Via Email