Track End User Sessions
How-to guideCombine Logins, Service Tunnel Active Connections, and Events to see which users are signed in and connected
- Overview
- Find users with a valid session
- See devices connected to a Service Tunnel
- Track access events
- What is next
Overview
Cloud Secure Edge (CSE) has no single list of users who are signed in right now. Three places in the Command Center each show part of the picture, and together they give you a close estimate.
| Where | What it tells you | What it does not tell you |
|---|---|---|
| Logins | Which users logged in recently enough to probably still have a valid session | Whether a session ended early, or whether the user is connected to anything |
| Service Tunnel Active Connections | Which devices are connected to each Service Tunnel now | Anything about the past, or access that does not go through a Service Tunnel |
| Events | When users logged in, connected, disconnected, and accessed resources | A current list, because you read it from individual events |
Start with Logins to see who could be signed in. Check Active Connections to see who is connected to a Service Tunnel now. Use Events to confirm what a single user did and when.
Find users with a valid session
Each row in Logins is a login where CSE issued the user a token. That token stays valid for the maximum session length you set. A user who logged in more recently than that length ago can be assumed to still have a valid session.
1. In Settings > Configuration > Advanced, check the value under Authentication Tokens and Certificates. This is your maximum session length. It defaults to 24 hours.
2. Go to Home > Logins. Set the period to the shortest option that covers your maximum session length. Use the last 24 hours for a 24-hour length, and the last 7 days or the last 14 days for a longer one. The longest length CSE allows is 240 hours, which is 10 days, so the last 14 days always covers it.
3. Read the time on each user’s most recent login. If it falls within your maximum session length, the user probably still has a valid session. If it is older, the token from that login has expired.
Caveats
- A session can end early. Session idle timeout ends a session after a period with no user input. End session on desktop logout or reboot ends it when the user signs out of the device or restarts it. Logins lists logins only, so a user whose session ended this way still appears. If you have turned on either setting, treat the list as users who could still be signed in, not users who are.
- A valid session is not a connection. A user can hold a valid session without any Service Tunnel connected. To see who is connected, check Active Connections.
- Only Private Access logins appear. Logins does not show Secure Internet Access (SIA) activity.
- Logins shows at most 14 days and 10,000 rows. Narrow the period or filter by country if you reach the row limit.
See devices connected to a Service Tunnel
Active Connections shows the devices connected to each Service Tunnel at the moment you look.
1. In the Command Center, go to Private Access > Service Tunnels.
2. Read the Active Connections column. It shows how many devices are connected to each Service Tunnel now.
3. Click the count to see the connected devices. For each device, the list shows its operating system, Trust Level, Trust Profiles, and last login.
Caveats
- It counts devices, not users. A user connected from two devices counts twice.
- Each Service Tunnel has its own count. Check every Service Tunnel to see all connected devices.
- It shows the present only. A device drops off the list when it disconnects, and the list keeps no history. Use Events to see past connections.
- It covers Service Tunnels only. Access to hosted websites and infrastructure services does not appear here.
Track access events
Events records what each user did, one event at a time. Use it to confirm a single user’s activity, or to see activity that is no longer current.
1. In the Command Center, go to Events.
2. Filter by User Email, Device Serial Number, or Service Tunnels to narrow the list to the user, device, or Service Tunnel you are checking.
3. Filter by Event Type to find the activity you need:
| To find | Event Type | What to look for |
|---|---|---|
| Logins | Identity | Action Grant, with the message SUCCESS - Banyan ID Token Generated |
| Service Tunnel connections | Access | Subtype Service Tunnel, with Action Connect or Disconnect |
| Sessions ended by idle timeout | Access | The message “Service Tunnel Disconnected - Idle Timeout” |
| Connections still open | Access | Messages that start with PERIODIC and report the connection start time as since TIME |
| Denied access | Access | Event Severity ERROR, with Action Unauthorized |
Access Tiers and HostAgents write a PERIODIC event every 10 minutes for each long-lived TCP connection. A recent PERIODIC event shows that the connection was still open at that time. See Access events for every subtype and action.
Caveats
- Events keeps 14 days. To keep events longer or send them to your SIEM, see Export and Retain Events.
- The viewer shows up to 10,000 events per filter. Narrow the date range or add filters to see the rest.
- Access events can be rate limited. An Access Tier or HostAgent can limit how many Access events it writes, including
PERIODICevents. A gap inPERIODICevents does not prove a connection closed. See configuration parameter settings.
What is next
- Control Remote Access Sessions for the settings that decide when a session ends
- Logins for where your users sign in from
- Events Properties & Definitions for the full event structure