-
Notifications
You must be signed in to change notification settings - Fork 2
audit
Pre-Alpha. This page describes behavior that may change.
Ze keeps a local structured audit log for operator actions that change state or fail authentication. The log is append-only from the operator's point of view: there is a query command, but no command to delete or truncate records.
The audit trail covers config commit and discard, daemon reload, and failed authentication across SSH, web, REST, gRPC, MCP, CLI, and system surfaces.
| Action | Surfaces |
|---|---|
config-commit |
SSH/CLI config editor, web config editor, REST config sessions, gRPC config sessions |
config-discard |
SSH/CLI config editor, web config editor, REST config sessions, gRPC config sessions |
daemon-reload |
SIGHUP and daemon reload command dispatch |
auth-fail |
SSH, web, REST, gRPC, MCP |
Each entry carries timestamp, actor, remote-addr, surface, action, detail, and outcome fields. The detail field carries the config diff for commit and discard records when Ze has one.
When Ze starts from a real config file, the audit log is disk-backed and stored next to that file as <config-base>.audit.jsonl, one JSON object per line. The records survive a restart, so the evidence stays available.
For stdin configs (ze -) and web-only test mode, Ze uses memory-only storage. The in-memory query cache keeps the newest records up to a retention limit set in code. The default is 10,000 entries, with accepted bounds from 100 to 100,000.
Use show audit from the daemon CLI, or ze show audit from the shell. The response is structured data with entries and count. Filters can be combined.
| Filter | Argument | Meaning |
|---|---|---|
action |
action name | Restrict to one action, for example config-commit. |
actor |
username | Restrict to one actor. |
surface |
surface name | Restrict to one surface, for example web. |
since |
RFC 3339 timestamp | Only entries at or after this time. |
until |
RFC 3339 timestamp | Only entries before this time. |
count |
number | Limit the number of returned entries. |
ze show audit
ze show audit action config-commit
ze show audit actor alice
ze show audit surface web count 20
ze show audit since 2026-05-24T10:00:00Z until 2026-05-24T11:00:00Z
Time filters use RFC 3339 timestamps.
Adapted from main/docs/guide/audit.md.
Unreviewed draft. This wiki was authored in bulk and has not been reviewed. File corrections on the issue tracker.
- Overview
- YANG Model
- Editor Workflow
- Archive and Rollback
- System
- Interfaces
- VRRP
- BFD
- FIB
- OSPF
- IS-IS
- MPLS / LDP / RSVP-TE
- RSVP-TE
- SRv6
- Static Routes
- Policy Routing
- Firewall
- Traffic Control
- Class of Service
- L2TP/PPP
- PPPoE
- VPP Data Plane
- RPKI
- IPsec VPN
- TACACS+ AAA
- RADIUS AAA
- AS112 DNS
- Authorization
- Fleet
- BGP
- Starting and Stopping
- Show Commands
- Monitoring
- Flow Export
- DDoS Mitigation
- Anomaly Detection
- Health Checks
- Audit Trail
- Production Diagnostics
- Logging
- Operational Reports
- Healthcheck
- Self-Update
- Zero-Touch Provisioning
- MRT Analysis
- Upgrade and Restart
- Storage
- Policy
- Core
- Resilience
- Validation
- Capabilities
- Address Families
- Protocol
- Subsystems
- Infrastructure
- Route Server at an IXP
- Transit Edge with RPKI
- Public Looking Glass
- ExaBGP Migration Walkthrough
- FlowSpec Injection
- Chaos-Tested Peering
- AS Path Topology