Traffic events
What traffic events record and leave out, how to turn them on, who can see them, how long they are kept, and what you must tell your users.
Traffic events record which device connected to which destination through SXAccess, and whether an access rule allowed or denied the connection. They help you investigate incidents and check that your access rules work as intended.
Traffic events are separate from audit events, which record the actions of people and services in your organization. Both are under Activity in the dashboard.
Off by default
Traffic events are off for every organization until an Owner or Admin turns them on.
To turn them on, open Activity in the dashboard, select the Traffic events tab, choose Traffic settings and enable Record traffic events.
Over the API, set extra.network_traffic_logs_enabled to true on the organization. Set extra.network_traffic_packet_counter_enabled to true if you also want packet and byte counts for every flow. Counting can slow traffic down slightly.
Each change to these settings is written to the Activity log.
What is recorded
One event describes one connection (flow) as one device saw it.
| Group | Fields |
|---|---|
| Connection | Source and destination IP address, source and destination port, IP protocol, ICMP type and code, direction, connection type (p2p or routed) |
| Time | When the flow was opened, closed or denied |
| Result | Allowed or denied, and the ID and name of the access rule that decided it |
| Devices | ID and name of the reporting device, and the ID and name of the source and destination device or resource |
| User | ID of the user who enrolled the source device |
| Volume | Packets and bytes sent and received |
What is not recorded
- No content of the traffic: no payload, no URLs, no file names.
- No domain names and no DNS query content.
- No user name or email address. Events hold the user ID only; the dashboard looks up the name when an authorized person views the list.
DNS flows and flows that pass through an Internet gateway are not recorded.
Who can see traffic events
Members whose role can read the Activity log can view traffic events, and only for their own organization. See Roles and permissions.
In the dashboard, open Activity and select the Traffic events tab, next to Audit events.
Over the API, call GET /api/traffic-events. You can filter by time window, device, user, IP address, port, protocol, verdict, direction and connection type. Without a time window, the last 24 hours are returned.
Retention
Traffic events are kept for 7 days and then deleted automatically. The API returns the current value as retention_days.
When an organization is deleted, its traffic events are deleted with it.
Send traffic events to your SIEM
If you have set up event streaming, you can include traffic events in the stream. Streamed events carry the user ID only, never a name or email address. Events that reach your SIEM are kept under your own retention rules, not the 7 days above.
Your responsibility to inform your users
Traffic events show which destinations a person's device connected to, and when. In many countries this counts as monitoring of employees.
Before you turn traffic events on, your organization is responsible for:
- Informing the people who use SXAccess in your organization that their connection metadata will be recorded, what is recorded, for how long, and who can see it.
- Making sure you have a lawful basis for this monitoring under the laws that apply to you, including any required consultation or consent.
- Limiting the roles that can read the Activity log to the people who need it.
SXAccess does not notify end users on their devices when traffic events are turned on.

