Audit Trail
Investigate tenant activity with the Smart Audit dashboard, browse trails by user, entity, or correlation, export evidence packs, and manage server-side retention with hard purge.
Audit Trail
EGKits records create, update, and delete activity as hard audit rows — not soft-deleted business records. Administrators investigate who changed what, when, and under which request, then export evidence for compliance. Server retention and hard purge live beside the trail so you can keep investigation history without keeping every row forever.
For soft-deleted business data (recycle and permanent removal), see Data Lifecycle.
#Who can use it
| Capability | Typical permission |
|---|---|
| Open dashboard and browse trails | Permissions.AuditTrails.View |
| Search and filter | Permissions.AuditTrails.Search |
| Export Excel / CSV | Permissions.AuditTrails.Export |
| Server retention policy and hard purge | Permissions.AuditTrails.Manage |
Open Audit from Administration (or the Audit Trail dashboard URL /audit). Module chips guide you through Overview, Browse Trails, By User, By Entity, Correlation, Retention, and Settings.
#How trails are written
flowchart LR UI[ERP action] --> API[API SaveChanges] API --> Soft[Soft-delete business row when applicable] API --> Queue[Audit write queue] Queue --> DB[(Identity.AuditTrails)] DB --> Dash[Audit dashboard & search] Policy[Tenant retention policy] --> Sweep[Scheduled hard purge] Sweep --> DB
- Trails store operation, entity, module, previous/new values, primary key, tenant, correlation, request id, IP, and user agent.
- Soft-deleting a business document still produces an audit Delete (or Update) trail; the business row remains recoverable until you purge it from Data Lifecycle.
- Audit rows themselves are never soft-deleted — retention removes them with batched hard delete only.
#Smart Audit dashboard
The Overview tab consolidates:
- Operation mix (create / update / delete)
- Activity timeline
- Quick jumps into Browse Trails, By User, and Correlation
Use it for a morning health check: unexpected delete spikes, silent modules, or a sudden rise in privileged updates.
#Investigation workflows
#Browse Trails
Server-paged search across the tenant. Prefer date ranges and module filters before keyword search on previous/new values — large JSON payloads travel only for the visible page.
#By User
Select a user to reconstruct their timeline. Combine with correlation when a single UI action fans out into several entity writes.
#By Entity
Locate every change to a document type or key. Useful after a disputed posting or partner master-data change.
#Correlation
Trace a single request / correlation id across entities and modules. Ideal for “what did this API call touch?” investigations.
#Export
Export filtered results to Excel or CSV for auditors. Restrict exporters with AuditTrails.Export and treat downloadable packs as sensitive.
#Client settings vs server retention
| Surface | Path | Purpose |
|---|---|---|
| Client preferences | /audit/settings |
Page size, default date range, view mode — browser only |
| Server retention & hard purge | /audit/retention |
Days to keep trails, auto-purge, period-based hard delete |
Client settings never delete rows. Only Retention (and the platform scheduled sweep) permanently remove audit history.
#Server retention and hard purge
- Open Audit → Retention.
- Set Audit retention (days) or leave blank to use the platform default (typically 90).
- Toggle Auto-purge when the background sweep should enforce the policy.
- For a one-off cleanup, choose a period (current / previous month, month+year, year, custom range, or up to a date), Preview, then Execute.
Large or year-wide scopes require typing DELETE before execute. Concurrent purges for the same tenant are blocked. Every successful run is written to a protected cleanup ledger (actor, counts, window) that cannot be purged from the Soft-Deleted Records Center.
Details, permissions for soft-delete purge, and the shared ledger are covered in Data Lifecycle.
#Security alerts
Tenant-wide security alerts (failed logins, lockouts, session events) share the same governance area. Review open alerts regularly; resolving them does not remove Audit Trail history.
#Recommended operating cadence
| Cadence | Action |
|---|---|
| Daily | Skim dashboard for delete spikes and failed privileged actions |
| Weekly | Spot-check By User for admin accounts |
| Monthly | Export a sample evidence pack; confirm retention days still match policy |
| Quarterly | Align retention with legal / tax counsel; review who holds AuditTrails.Manage |
#Troubleshooting
| Issue | What to check |
|---|---|
| Missing Audit menu | Module enabled for the tenant; role has AuditTrails.View |
| Empty search results | Soft-deleted rows still appear in business “include deleted” grids — audit search is separate; widen the date range |
| Retention page forbidden | Needs AuditTrails.Manage, not only View |
| Purge says confirmation required | Type DELETE exactly; year / up-to-date / ≥10 000 rows always require it |
| Another purge is running | Wait for completion or use cancel / lock release from Data Lifecycle operations (Manage) |
#Related guides
- Data Lifecycle — soft-deleted records center, retention, hard purge
- Security Best Practices — RBAC, MFA, audit cadence
- Identity & Access — roles and permissions
- System Configuration — tenant operational controls