Audit log
The audit log answers “who changed this?”. It is a plan feature of the Enterprise plan. On other plans the
log is not written, and reading it is refused with 403 and the code plan_limit_exceeded. Reading needs the
admin role.
What is it for
Section titled “What is it for”Investigations and compliance: who paused the backup monitor, who rotated a key, who invited whom.
When to use it
Section titled “When to use it”On the Enterprise plan, when more than one person or any automation changes the project.
Entries
Section titled “Entries”Every entry has an actor (the email of the person, or API token when a token made the change), an action,
an optional target (for example the name of the monitor, up to 200 characters) and a time.
| Area | Actions |
|---|---|
| Monitors | monitor.created, monitor.updated, monitor.deleted, monitor.paused, monitor.resumed, monitor.key_rotated, monitor.badge_enabled, monitor.badge_disabled, monitor.escalation_updated, monitor.escalation_removed, monitor.deliver_by_updated, monitor.deliver_by_removed |
| Incidents | incident.acknowledged, incident.snoozed |
| Channels | channel.created, channel.deleted |
| Agents | agent.created, agent.revoked, agent.deleted |
| Maintenance | maintenance.created, maintenance.updated, maintenance.deleted |
| Status pages | status_page.created, status_page.updated, status_page.deleted, status_page.domain_verified, status_page.branding_updated, status_page.branding_image_updated, status_page.branding_image_removed, status_page.incident_opened, status_page.incident_updated, status_page.incident_deleted |
| Members | member.invited, member.invitation_canceled, member.joined, member.role_changed, member.removed |
| Project | project.renamed, project.ownership_transferred |
| API tokens | api_token.created, api_token.revoked |
Pings, notification deliveries and automatic status changes are not part of the audit log, they are in the ping history and the incident history of each monitor.
Retention
Section titled “Retention”Entries are kept for 365 days and then deleted by a daily job. Only entries written while the project was on the Enterprise plan exist.
Read it with the API
Section titled “Read it with the API”curl -sS "https://api.cronbeat.dev/api/audit-log?size=50" \ -H "Authorization: Bearer cb_pat_YOUR_TOKEN"The result is a page of {id, actor, action, target, at}, newest first, see Paging
(page, size, default 25). Filter with action (see GET /api/audit-log/actions for the names), actor, target,
and from and to (ISO 8601 times). The app has the same filters. An API token can read the audit log
only if it is allowed to reach this endpoint, see API tokens.
What happens when
Section titled “What happens when”| Situation | Result |
|---|---|
| A member pauses a monitor | An entry monitor.paused with the member’s email and the monitor name. |
| A script with an API token deletes a channel | An entry channel.deleted with the actor API token. |
| The project is downgraded from Enterprise | No new entries are written and the log cannot be read, until the plan returns. |
| An entry is older than 365 days | It is deleted by the daily cleanup. |

