-
Notifications
You must be signed in to change notification settings - Fork 0
Audit Log
Append-only audit log for security-relevant events: authentication, privilege changes, secret access, and plugin install/uninstall. Queryable from Admin with filters by event type, actor, severity, and time range.
| Property | Value |
|---|---|
| Plugin name | audit-log |
| Port | 3308 |
| Category | compliance |
| License | MIT (free) |
| Status | Stable |
| Min nself | 1.0.0 |
| Multi-App |
source_account_id (UUID) |
nself plugin install audit-log
nself build
nself restartNo license key required — this is a free MIT plugin.
| Variable | Description |
|---|---|
DATABASE_URL |
PostgreSQL connection string |
PLUGIN_INTERNAL_SECRET |
Shared secret for plugin-to-plugin HTTP calls (X-Internal-Token header) |
| Variable | Default | Description |
|---|---|---|
PORT |
3308 |
HTTP server port |
HASURA_GRAPHQL_ADMIN_SECRET |
— | Hasura admin secret (for Hasura metadata registration) |
| Table | Description |
|---|---|
np_auditlog_events |
All recorded audit events (append-only) |
The audit-log plugin captures events from the CLI and other plugins automatically when installed:
- User authentication (login, logout, token refresh)
- Privilege changes (role grants and revocations)
- Secret access (reads of encrypted secrets via
nself secrets get) - Plugin install, update, and uninstall operations
- Admin-panel access events
Custom events can be written by other plugins via the internal API.
From the nself Admin UI: open the Audit Log section in the sidebar. Filter by event type, actor, severity (info, warning, critical), or time range.
Via the CLI:
# View recent events
nself plugin run audit-log events --limit 50
# Filter by event type
nself plugin run audit-log events --type auth.login
# JSON output for SIEM export
nself plugin run audit-log events --format json --since 24hVia GraphQL (Hasura):
query AuditEvents($since: timestamptz!) {
np_auditlog_events(
where: { created_at: { _gte: $since } }
order_by: { created_at: desc }
) {
id
event_type
actor_id
severity
payload
created_at
}
}Events are append-only — no updates or deletes via the API. Retention cleanup (if needed) must be done via direct database maintenance. Future versions will add configurable retention policies.
- Security — nself security overview
- Backup — back up audit logs along with your Postgres data
- Plugin Development — write your own plugins
- Commands
- File Processing Commands
- GitHub Commands
- ID.me Commands
- Jobs Commands
- Notifications Commands
- Realtime Commands
- Shopify Commands
- Stripe Commands
View All: Home (or see the full alphabetical list below — 129/129 synced with registry.json)
- Access-Controls
- Admin-Api
- AI-CLI
- AI-Studio
- Alerts
- Analytics
- API
- Audit
- Audit-Analytics
- Audit-Log
- Auth-Enterprise
- Backup
- BYOK
- CDC
- CDN
- CI
- Claw-CLI
- Cloudflare
- Compliance
- Content-Acquisition
- Content-Progress
- Content-Safety
- Costs
- CRDT
- Cron
- DDNS
- Devices
- DLQ
- Documents
- Dogfood
- Donorbox
- DR
- E2EE
- Encryption
- Entitlements
- Event-Bus
- Family-Ancestry
- Family-FamilySearch
- Family-GEDCOM
- Family-MyHeritage
- Family-WikiTree
- Feature-Flags
- Federation
- File-Processing
- Flags
- Forgejo
- Functions-V8
- Game-Metadata
- Gateway
- Gauth
- GDPR
- Geocoding
- GitHub
- GitHub-Runner
- HIPAA
- Home
- IDme
- Infra
- Invitations
- Job-Queue
- Jobs
- K8s
- Link-Preview
- Maintenance
- MDNS
- Media-Processing
- Meetings
- MLflow
- Model
- Monitor
- Monitoring
- Notifications
- Notify
- nSelf-Cloud
- nSelf-Eval-Gate
- nSelf-Geo
- nSelf-Image
- nSelf-PDF
- nSelf-Scan
- nSelf-Sync
- nSelf-Vault
- Object-Storage
- Observability
- Ollama
- Payments
- PayPal
- Pentest
- Pentest-Kit
- Plugin-ClawDE
- Plugin-Gauth
- Plugin-LLM-Gateway
- Plugin-PTY
- Plugin-Retrieval
- Podcast
- Post
- Push
- Queue
- Region
- Release
- Retro-Gaming
- Rom-Discovery
- Search
- Sentry-CLI
- Shared-Utils
- Shopify
- SIEM
- SMS
- Soak
- Sports
- Storage
- Storage-Transform
- Stripe
- Subtitle-Manager
- Tenant
- Tenant-Controller
- TMDB
- Tokens
- Torrent-Manager
- Transactional-Email
- VPN
- WAF
- Warehouse
- Watchdog
- Web3
- Webhooks
- Workflows
Related