Skip to main content
The Events API provides access to audit logs and activity events in your NetBird network, enabling compliance, monitoring, and security analysis.

Audit Events

Audit events track administrative actions and system changes.

List All Audit Events

string
Unique event identifier
string
When the event occurred (ISO 8601 format)
string
Human-readable description of the activity
string
Machine-readable activity code
string
ID of the user who triggered the event
string
Name of the user who triggered the event
string
Email of the user who triggered the event
string
ID of the resource affected by the event
object
Additional event metadata

Activity Codes

Events are categorized by activity codes for easy filtering and monitoring.

User Events

Peer Events

Policy & Rule Events

Network Events

DNS Events

Setup Key Events

Token Events

Account Events

Integration Events

Network Traffic Events

Network traffic events are a Cloud-only experimental feature that tracks network flows between peers.

List Network Traffic Events

integer
default:"1"
Page number
integer
default:"1000"
Items per page (max 50000)
string
Filter by user ID
string
Filter by reporter (peer) ID
integer
Filter by protocol (1=ICMP, 6=TCP, 17=UDP)
string
Filter by event type: TYPE_START, TYPE_END, TYPE_DROP
string
Filter by connection: P2P or ROUTED
string
Filter by direction: INGRESS, EGRESS
Search user email, source/destination names and addresses
string
Start date filter (ISO 8601)
string
End date filter (ISO 8601)

Reverse Proxy Access Logs

View access logs for reverse proxy services (NetBird Cloud feature).

List Proxy Access Logs

integer
default:"1"
Page number
integer
default:"50"
Items per page (max 100)
string
default:"timestamp"
Field to sort by: timestamp, url, host, path, method, status_code, duration, source_ip, user_id, auth_method, reason
string
default:"desc"
Sort order: asc or desc
string
General search across fields
string
Filter by host header
string
Filter by HTTP method
integer
Filter by HTTP status code
string
Start date filter (RFC3339 format)
string
End date filter (RFC3339 format)
Example

Event Monitoring Strategies

Security Monitoring

Monitor security-relevant events:

Compliance Auditing

Track administrative actions:

Operational Monitoring

Monitor network health:

Integration Examples

SIEM Integration

Forward events to your SIEM:

Webhook Notifications

Send critical events to Slack/Discord:

Best Practices

Regular audits - Review audit logs regularly for suspicious activity
Alert on critical events - Set up monitoring for security-relevant changes
Retain logs - Export and archive events for compliance requirements
Filter effectively - Use activity codes to focus on relevant events
Monitor anomalies - Watch for unusual patterns in event data