Skip to main content

Audit Logging

Immutable audit trail with 30+ action types covering user, device, flow, deployment, OTA, billing, and security events. Queryable by user, action, resource, and date range.

Overview

Every significant action in EdgeFlow SaaS is recorded in an immutable audit log. The audit trail covers user authentication, device management, flow operations, deployments, OTA updates, billing changes, and security events. Logs are queryable by user, action type, resource, and date range.

Audit Log Entry

{
  "id": "audit_abc123",
  "organization_id": "org_xyz789",
  "user_id": "usr_def456",
  "action": "device.provision",
  "resource_type": "device",
  "resource_id": "dev_ghi789",
  "status": "success",
  "old_values": {},
  "new_values": {
    "device_id": "dev_ghi789",
    "firmware_version": "1.2.3"
  },
  "ip_address": "192.168.1.100",
  "user_agent": "Mozilla/5.0...",
  "timestamp": "2026-02-21T12:00:00Z"
}

Action Types

User Actions

ActionDescription
user.loginUser logged in
user.logoutUser logged out
user.registerNew user registered
user.updateProfile updated
user.deleteUser account deleted
user.password_changePassword changed
user.password_resetPassword reset requested
user.mfa_enableMFA enabled
user.mfa_disableMFA disabled

Organization Actions

ActionDescription
org.createOrganization created
org.updateOrganization settings updated
org.deleteOrganization deleted
org.member_inviteTeam member invited
org.member_removeTeam member removed
org.member_role_changeMember role changed

Device Actions

ActionDescription
device.provisionDevice provisioned
device.updateDevice metadata updated
device.deleteDevice removed
device.claimDevice claimed by organization
device.unclaimDevice released from organization

Flow & Deployment Actions

ActionDescription
flow.createFlow created
flow.updateFlow definition updated
flow.deleteFlow deleted
flow.publishFlow published for deployment
deployment.createDeployment created
deployment.startDeployment started
deployment.pauseDeployment paused
deployment.resumeDeployment resumed
deployment.rollbackDeployment rolled back
deployment.cancelDeployment canceled

OTA & API Key Actions

ActionDescription
ota.uploadFirmware binary uploaded
ota.initiateOTA update initiated
ota.rollbackOTA update rolled back
api_key.createAPI key generated
api_key.revokeAPI key revoked
api_key.rotateAPI key rotated

Security Actions

ActionDescription
security.breachSecurity breach detected
security.unauthorized_accessUnauthorized access attempt
security.rate_limit_exceededRate limit exceeded

Billing Actions

ActionDescription
billing.plan_changeSubscription plan changed
billing.paymentPayment processed
billing.invoiceInvoice generated

Resource Types

Audit logs track actions against these resource types:

  • user — User accounts
  • organization — Organizations and teams
  • device — Edge devices
  • flow — Flow definitions
  • deployment — Flow deployments
  • project — Projects within organizations
  • api_key — API keys
  • firmware — Firmware binaries

Features

  • Change Tracking — Old and new values recorded for every modification
  • IP & User Agent — Client information logged for forensic analysis
  • Queryable — Filter by user, action, resource type, date range
  • Statistics — Aggregated audit activity reports
  • Export — Download audit logs as JSON
  • User Activity Summary — Per-user action history
  • Security Reports — Filtered view of security-related events
  • Retention — 30-90 day queryable history with archival