Overview
Thelist_log_entries tool retrieves all log entries across your PagerDuty account. Log entries are records of all events on your account, providing a comprehensive audit trail of actions taken by users, services, and integrations.
This is a read-only tool that does not modify any data in your PagerDuty account. If no time range is specified, defaults to the last 7 days.
Parameters
The start of the date range to search. Defaults to 7 days ago if not specified.Example:
"2024-01-01T00:00:00Z"The end of the date range to search. Defaults to now if not specified.Example:
"2024-01-31T23:59:59Z"Maximum number of results to return. Must be between 1 and 10000.Example:
50The offset for pagination. Used to retrieve additional pages of results.Example:
100If
true, returns only the most important changes to incidents. Useful for getting a high-level view without excessive detail.Example: trueInclude additional related resources in the response. Available options:
incidents- Include incident detailsservices- Include service detailschannels- Include channel informationteams- Include team information
["incidents", "services"]Filter log entries by team IDs. Only returns log entries associated with the specified teams.Example:
["TEAM123", "TEAM456"]Time zone for the results. Uses standard timezone names.Example:
"America/New_York" or "UTC"Set to
true to include the total count of log entries in the response.Example: trueResponse
Returns a list of log entry objects.Array of log entry objects
Example Usage
Use Cases
- Audit trail - Review all actions taken on your PagerDuty account
- Incident investigation - Trace the sequence of events during an incident
- Compliance reporting - Generate reports of who did what and when
- Team activity - Monitor activity for specific teams
- User behavior analysis - Understand how users interact with PagerDuty
- Integration monitoring - Track actions performed by integrations
Response Example
Important Notes
- Log entries are read-only and cannot be modified or deleted
- The default time range is 7 days to ensure reasonable response times
- Use
is_overview: trueto reduce noise in high-traffic accounts - Log entries include polymorphic types based on the action performed
Related Tools
- Get Log Entry - Retrieve a specific log entry by ID
- List Incidents - View incidents referenced in log entries
- List Services - View services referenced in log entries