Audit Log
The audit log records who did what, where and when: every sign-in and every change an account makes to users, customers, hosts, rules and settings. It is for answering "who changed this?" afterwards, and for showing a customer what was done on its estate.
It lives under Settings → Audit log and is administrator-only. The page is live: a new entry appears at the top as it is written, and the filters apply to what arrives as well as to what is already there.
What is recorded
Each entry holds the time, the account that acted (by name, as it was then), the action, what it was done to, the customer it belongs to, the outcome, the address the request came from, and details specific to the action — a role before and after, the name of a deleted host. A reason is kept where a customer's policy asks for one (see Customer policies).
Outcomes are succeeded, failed and denied. A failed sign-in is an entry too, with the identifier that was tried, so a run of guessed passwords is visible; where an action is refused for lack of a permission or by a customer's policy, the entry is denied.
| Area | Actions |
|---|---|
| Sign-in | signed in, sign-in failed (unknown account, wrong password, wrong second factor), signed out |
| Own account | password changed, password reset requested and completed, authenticator app turned on and off, recovery codes made again and used, trusted browser revoked, API token created and revoked |
| Accounts | created, deleted, role changed, email address changed, password changed by an administrator, default permissions changed, switched off and on, invitation link issued, second factor reset, signed out everywhere, a browser or token revoked |
| Access | customer access granted and withdrawn, permissions of a grant changed (Permissions of a grant changed, also written once per grant when an account's default permissions are applied to its existing grants, with source: defaults) |
| Customers | created, changed, deleted, policies changed (also written by the 3.5.0 migration for customers whose approval or reason requirement it widened, see Upgrading), management changed (switched on, or switched off, which lists what was purged) |
| Hosts | created, deleted, agent key regenerated, agent installed on a host without one (install key created), agent removed, hosts merged, tags, colour, region, offline alerts changed, moved to another customer or to a folder (when done to several hosts at once from the list, one entry per host) |
| Desktop app | signed in and out, wrong PIN entered, signed out after too many wrong PINs, PIN set or changed (and how many apps a reset signed out); a browser confirming it is the same person again (Sign-in confirmed again) |
| Access entries | created, changed, duplicated, deleted, restored and removed from the trash, folders likewise, the customer's access entry notes changed, a stored password copied, many passwords copied in a short time, an entry opened (reported by the client, so advisory), an SSH host key confirmed or replaced, images added to or removed from the icon library. Entries written before 3.4.0 as Connection created and the like keep their labels and are shown in an entry's history; entries of earlier imports and exports are kept too (Connections imported, Connections exported and History imported); see Access Entries |
| Host access | an address or a share added to, changed on or removed from a host, a host's tunnel switch or tunnel host changed (with the old and new values; entries from before 3.5.0 carry the old mode instead), a host renamed or its tags changed; entries recorded for the web addresses of earlier versions stay readable; see Hosts and Access Entries |
| Client releases | an installer of the desktop client published, a release offered, withdrawn or given other notes, a release deleted; see Client Releases |
| SSH keys | owner of a key set or removed, a key marked or unmarked as an expected host key, removal of keys requested |
| Agents | agent settings changed, agent updates held and released, rollout mode changed, server address changed, the actions allowed for a customer's, cluster's or host's hosts set or removed |
| Vulnerabilities | a risk accepted or revoked, a fix started (with the reason, see Vulnerabilities) |
| Rules and windows | alert rules, event rules and maintenance windows created, changed and deleted |
| Scripts | scripts created, copied, changed and deleted, versions saved and approved, runs started and stopped, schedules created, changed, deleted and missed, see Scripts |
| Self-healing | rules created, changed, deleted and approved; each script run a rule starts, and how it ended (by the system itself, with the rule and the alert) |
| Endpoint protection | a host's antivirus or firewall marked as off on purpose or judged again, see Security |
| Remote desktops | an RDP, VNC or SSH session in the browser opened (with whether the credential was stored or entered), closed, ended by an administrator, a recording played back or downloaded; see Remote Desktop |
| Services | a service started, stopped or restarted from a host's page, with the reason where the customer asks for one |
| Settings | retention of alerts, of the audit log and of the access entry trash changed, the name and logo of reports and mails changed |
| The log itself | exported, old entries removed by the retention |
Secrets are never written: a field named like a password, token, key or code is dropped from the details before the entry is stored.
Entries about a person's private customer are the exception to everything above: they are filed under it and are shown in the audit log, its filters and its exports to the owner alone, an administrator included, and only in a browser session or the desktop app, never to a token. They are not sent to webhooks and are announced to the owner's own screens only. The owner reads them as the history of the entry. The daily removal of old entries from the access entry trash writes one entry per customer with counts, by the system itself; so does the removal of the private customer of a deleted account, which takes its entries with it.
Reading it
Filter by customer, account, host, action and outcome, by a range of days, or search the action, account, target, address, reason and details. The filters are in the address bar, so a filtered view can be linked. Days are read on the instance's time zone (Settings → General). Details opens the reason and the action's own fields. Older entries load as you scroll.
An entry about the instance itself — a sign-in, a setting — belongs to no customer; filtering by a customer shows only the entries filed under it.
Exporting
Export CSV and Export JSON download everything the current filters select, newest first. The export is streamed, so a year of entries does not have to fit in memory, and it is itself an entry: the log says who took a copy.
The same exports are available to scripts with an administrator's API token:
GET /api/audit-log/export?format=csv|json
with the filters as query parameters: customerId, actorId, targetType,
targetId, action (an exact action, or a prefix ending in a dot such as
user.), outcome, from (inclusive) and to (exclusive) as ISO times, and
q. A malformed filter is a 400 rather than an export of everything.
GET /api/audit-log returns one page of entries as JSON with a nextCursor.
The CSV starts with a byte order mark so a spreadsheet reads the umlauts, and
a cell that would be read as a formula (starting with =, +, - or @) is
prefixed with a quote mark.
Append-only
Nothing in Selvara changes or deletes an entry. A database trigger refuses
every UPDATE, DELETE and TRUNCATE on the table, and the one exception is
the retention purge. This guards against a mistake or a bug in the dashboard.
It is not a defence against someone who holds the database owner's password
and can drop the trigger; to be sure of that, ship the log elsewhere with the
export or a database replica.
Retention
Entries are kept for 365 days by default. Settings → Data retention changes that (also reachable from the link at the top of this page; 0, or 90 to 3650 days; 0 keeps every entry for ever). A shorter retention is refused, so that nobody can erase the record of their own actions within days. The purge runs hourly with the alert cleanup and writes an entry of its own saying how many it removed and before when, so a gap at the old end of the log reads as the retention and not as somebody's deletion. Shortening the retention deletes the older entries on the next run, so export first if you need them.
Related: Users and Permissions for the permissions and policies the log records, Backup and Restore for keeping the database, and API Tokens.