OwlMetry
CLI

Audit Log

View audit log entries for team actions from the CLI.

The audit log records who performed what action on which resource within your team. Use it to track changes to apps, projects, API keys, team membership, and more.

List audit log entries

owlmetry audit-log list --team-id <id> [options]
FlagRequiredDescription
--team-id <id>YesTeam UUID
--resource-type <type>NoFilter by resource type (see table below)
--resource-id <id>NoFilter by specific resource UUID
--actor-id <id>NoFilter by actor ID (user UUID or API key ID)
--action <action>NoFilter by action: create, update, delete
--since <time>NoStart time (relative like 1h, 7d, or ISO 8601)
--until <time>NoEnd time
--limit <n>NoMax entries to return
--cursor <cursor>NoPagination cursor

Resource types

TypeDescription
appApp created, updated, or deleted
projectProject created, updated, or deleted
api_keyAPI key created, updated, or revoked
teamTeam settings changed
team_memberMember added, role changed, or removed
invitationTeam invitation sent, accepted, or revoked
metric_definitionMetric definition created, updated, or deleted
funnel_definitionFunnel definition created, updated, or deleted
userUser account changes

Actions

ActionDescription
createResource was created
updateResource was modified
deleteResource was removed or revoked

Actor types

Each audit log entry records who performed the action:

TypeDescription
userA logged-in user via the dashboard or CLI
api_keyAn agent API key (used by CLI or automation)
systemAn automated system action

Examples

# All entries for a team in the last 24 hours
owlmetry audit-log list --team-id 550e8400-... --since 24h

# API key changes only
owlmetry audit-log list --team-id 550e8400-... --resource-type api_key

# Deletions in the last week
owlmetry audit-log list --team-id 550e8400-... --action delete --since 7d

# Actions by a specific user
owlmetry audit-log list --team-id 550e8400-... --actor-id a1b2c3d4-...

# Changes to a specific project
owlmetry audit-log list --team-id 550e8400-... --resource-type project --resource-id 550e8400-...

JSON output

Use --format json for machine-readable output, including full changes and metadata fields that are not shown in the table view:

owlmetry audit-log list --team-id 550e8400-... --format json

Each entry in the JSON response includes:

  • id — audit log entry UUID
  • team_id — team UUID
  • actor_typeuser, api_key, or system
  • actor_id — UUID of the actor
  • actioncreate, update, or delete
  • resource_type — type of resource affected
  • resource_id — UUID of the affected resource
  • changes — object with before and after values for each changed field (null for creates/deletes)
  • metadata — additional context (e.g., resource name at time of action)
  • timestamp — ISO 8601 timestamp

Ready to get started?

Install the CLI and let your agent handle the rest.