> Source: https://docs.cyberelements.io/bastion/4.7/pl/Usage/Operation/Logs/Syslog/SessionEvents/

# Session events

These messages trace what happens **inside** a recorded session: commands, processes, windows, keystrokes, file operations, URLs, MCP calls, alerts. They are sent with the severity `info` (6), under the tag `Cleanroom-<organization>` and a second time under the tag `Cleanroom` ([duplicates](https://docs.cyberelements.io/bastion/4.7/pl/Usage/Operation/Logs/Syslog/SyslogOverview/#line-structure)), as soon as the organisation has ticked **Send video events to syslog** in its [general options](https://docs.cyberelements.io/bastion/4.7/pl/Usage/Administration/AdminConsole/ConfigurationWorkPanel/GeneralOptions/).

Unlike the other families, their text is **always in English**, whatever the language of the consoles, and it carries neither the organisation nor the address of the user: only the login and the domain, at the beginning.

## Reading the table

- `<user>@<domain>` is the account of the user of the session.
- The other names between `<…>` are the values traced: command line, program name, window title, path, URL.
- A template starts with a space, which separates it from the tag. Some templates follow the login without a space (`<user>@<domain>idle_time received:`): they are given as they are sent.
- An SSH command line longer than 100 characters is cut, and ends with `...`. A window title is limited to 512 characters, a URL to 1,024 characters. MCP call arguments are sent in full.
- The SFTP operation (`<operation>`) is one of: `HTML5 download`, `HTML5 upload`, `open directory`, `open file`, `remove file`, `creare directory`, `remove directory`, `rename`, `create symlink`, `unknown_extended`. A path longer than the recorded maximum starts with `...`.
- At the start of a session of an HTML5 (SSH) application whose **Enable file transfer** option is ticked, the platform itself runs `export SFTPSHARE=/tmp/<identifier>`, which is traced as an SSH command of the user: it arrives twice, the first time followed by `#015`.

> **Keystrokes reach the collector**
>
> The `key sequence` template carries what the user typed, passwords included if they were typed in the session. See [Security of the stream](https://docs.cyberelements.io/bastion/4.7/pl/Usage/Operation/Logs/Syslog/SyslogOverview/#security).

## Templates

| Event | Template | ECS (`event.category` / `event.type`) | OCSF class |
|---|---|---|---|
| Resumption of a web reverse proxy session | `<user> web reverse proxy session resume` | session / info | Base Event (0) |
| Resumption of a web session | `<user> web session resume` | session / info | Base Event (0) |
| Recording started | `Recording in progress <user>@<domain>` | session / start | Base Event (0) |
| Session could not be recorded in the database | `can not add session to database` | session / info, outcome failure | Base Event (0) |
| Recording ended | `<user>@<domain> end of record` | session / end | Base Event (0) |
| SFTP operation | `<user>@<domain> SFTP: op <operation> on "<path>"` | file / access, creation, deletion or change, depending on the operation | File System Activity (1001) |
| SSH command | `<user>@<domain> SSH command: "<command>"` | process / start | Process Activity (1007), activity Launch |
| Process started or ended | `<user>@<domain> New process: "<program>"` `<user>@<domain> Process end: "<program>"` | process / start, end | Process Activity (1007), activity Launch, Terminate |
| Keystroke sequence | `<user>@<domain> key sequence :"<keys>"` | session / info | Base Event (0) |
| Window opened or closed | `<user>@<domain> New window: "<title>"` `<user>@<domain> Window closed: "<title>"` | session / info | Base Event (0) |
| File transfer or clipboard copy | `<user>@<domain> <event description> <file>` `<user>@<domain> file copied to clipboard: <file>` | file / info | File System Activity (1001) |
| Transfer of several files (one line per file) | `<user>@<domain> <event description> <file>` `<user>@<domain> file copied to clipboard: <file>` | file / info | File System Activity (1001) |
| Idle time received | `<user>@<domain>idle_time received:<seconds>` | session / info | Base Event (0) |
| Idle time saved | `<user>@<domain> idle saved.` | session / info | Base Event (0) |
| Idle time processing error | `<user>@<domain>Error during add_event_idle treatment` | session / info, outcome failure | Base Event (0) |
| MCP tool call | `<user>@<domain> MCP tool:"<tool>" "<arguments>"` | web / access | API Activity (6003) |
| MCP prompt | `<user>@<domain> MCP prompt:"<prompt>" "<arguments>"` | web / access | API Activity (6003) |
| MCP resource access | `<user>@<domain> MCP resource:"<uri>"` | web / access | API Activity (6003) |
| Alert triggered | `<user>@<domain> alert triggered: <alert>` | event.kind: alert | Detection Finding (2004) |
| Alias used in an SSH session | `<user>@<domain> alias used in SSH session: <alias>` | authentication / info | Authentication (3002) |
| Activity rate saved | `<user>@<domain> activity rate saved: <rate>` | session / info | Base Event (0) |
| URL access (web session) | `<user> URL access:<url>` | web / access | HTTP Activity (4002) |
