> Source: https://docs.cyberelements.io/bastion/4.6/Usage/AdminConsoleReference/UserStatistics/

# Statistics per user

The **Statistics per user** module lists the sessions users opened from the user portal on the published applications. It is intended for an administrator who wants to track the activity of a given user, measure the load of a domain or produce a usage report for export.

---

## Reading the grid

Each row describes one session opened by a user on an application or as a direct access.

| Column | Description |
|---|---|
| **Name / Gateway - HTML5 Gateway** | The column title gives the **pattern**. The cell shows, in that order: an **icon** for the service type, the **name of the application** (or of the machine, for a direct access), then the **Edge Gateway** that carried the session, separated by `/`. When the session went through an **HTML5 Gateway**, its name is appended after a dash — that is, `Application / Edge Gateway - HTML5 Gateway`. The service type is also shown as a tooltip on hover. |
| **Domain** | Authentication domain of the user. |
| **User** | Sign-in identifier. |
| **Client IP** | IP address of the machine from which the user signed in. |
| **Start** | Session start date and time (format `DD/MM/YYYY HH:MM`). |
| **End** | Session end date and time. |

The grid is paginated (`15`, `25` or `50` rows per page). When no session matches, it shows **No statistics available for this period**.

The tooltip of the first column names the service type: **Remote Desktop Application**, **Remote Desktop Application (HTML5)**, **Remote Desktop Application without Agent**, **Remote Desktop Application without Agent (HTML5)**, **SSH Application**, **SSH Application (HTML5)**, **VNC Application**, **VNC Application (HTML5)**, **Citrix ICA Application**, **Citrix ICA Application (HTML5)**, **Citrix Storefront Application**, **Web application**, **Reverse Proxy application**, **SMB Application**, **NetBIOS Application**, **Generic tunnel application**, **VPN Application** — or **Host** for a direct access session.

## Filters

The **Filters** panel is collapsed by default.

| Field | Description |
|---|---|
| **Domain** | Picks an authentication domain from a drop-down filled by the platform, or *All* to keep every domain. |
| **User** | Picks a user from a drop-down, or *All* to keep every user. |
| **Period:** | **Annual**, **Monthly** or **Daily**. The choice drives which date fields are displayed below. |
| **Year:** | Drop-down running from the current year down to 2006. Visible for the annual and monthly periods. Defaults to the current year. |
| **Month:** | Drop-down listing the twelve months. Only visible for the monthly period. |
| **Day:** | Date picker in `DD/MM/YYYY` format. Only visible for the daily period. Defaults to the current day. |

The **Display** button applies the filters and reloads the first page. The **Reset** button restores the form to its default values and reruns the search with no filter.

## CSV export

The **Export all pages** button on the toolbar downloads the **`user_stats.csv`** file, which contains the sessions matching the current filters: filters set in the panel therefore also apply to the export.

The separator is the **semicolon**. The file opens with two context lines, followed by two blank lines:

| Line | Content |
|---|---|
| 1 | **Organization**, followed by the organization name. |
| 2 | **Exportation date**, followed by the export date and time. |

The header row comes next, then the data. The columns are **the six columns of the grid**, in the same order: **Name / Gateway - HTML5 Gateway**, **Domain**, **User**, **Client IP**, **Start** and **End**.

> **Two differences from the display**
>
> Dates in the file carry **seconds and the time zone** (`DD/MM/YYYY HH:MM:SS TZ`), where the grid stops at the minute. And the **End** column stays **empty** as long as the session is not over.

The number of exported rows is capped by a platform-wide limit.
