Operation logs
The operation log, under Records, answers questions such as who added this asset, who widened that permission, and who stopped a session. Every call to Casvisor's API is a candidate, from the web UI or from a script, and so are some things done inside sessions, such as files moved over SFTP.
What each entry holds
| Field | Meaning |
|---|---|
| Created time | When the call was made |
| Organization, User | Who made it |
| Client IP, User agent | From where and with what |
| Method, Request URI | The HTTP call, such as POST /api/update-permission |
| Action | The API action, such as update-permission or stop-session |
| Object | The request body: the asset, permission or session as sent |
| Response | Whether it succeeded, and the error if not |
Passwords and private keys in the request body are replaced by *** before the entry is stored.
What is logged
With logPostOnly = true, the default, only POST calls are logged, which are the ones that change something: adding, updating and deleting assets and permissions, starting and stopping sessions, signing in and out. Set it to false to log reads too, which makes the log far larger. Calls on the log itself are never logged.
SSH and file events
Some things happen inside a session rather than through an API call, so Casvisor writes an entry for them itself. In these entries Method is SSH, SFTP or RDP (GET for replays), Request URI holds the detail, such as a path, and Object holds the asset.
| Action | When | Detail |
|---|---|---|
ssh-connect | A connection through the SSH gateway logs in to the asset | |
ssh-forward | A gateway connection forwards to a destination for the first time | host:port, or the socket path |
ssh-tunnel | A gateway connection forwards to another asset for the first time | The asset's host:port |
sftp-download | A file is opened for reading over SFTP, or downloaded in the file panel | The path |
sftp-upload | A file is opened for writing over SFTP, or uploaded in the file panel | The path |
sftp-mkdir, sftp-rmdir, sftp-remove | A folder is created or removed, or a file removed, over SFTP, or a folder created in the file panel | The path |
sftp-delete | A file or folder is deleted in the file panel of an SSH session | The path |
sftp-rename | A file or folder is renamed over SFTP or in the file panel | old -> new |
sftp-symlink, sftp-link | A link is created over SFTP | link -> target |
file-upload, file-download, file-mkdir, file-rename, file-delete | The same in the file panel of an RDP session | The path, or old -> new |
kubernetes-upload, kubernetes-download | A file is copied into or out of a container of a Kubernetes asset, in the browser or with kubectl cp, or piped into a command with kubectl exec -i | namespace/pod/container:path, or the command |
file-create, file-mkdir, file-read, file-write, file-rename, file-delete | The remote desktop uses the redirected drive of an RDP session; file-write once the file is closed | The path, with the bytes written for file-write |
clipboard-copy, clipboard-paste | Text is copied out of or pasted into an RDP session | The text, up to 1000 bytes |
session-monitor | An administrator opens the live view of a session | The session |
session-replay | An administrator replays or downloads a recording | The recording file |
sql-export | A user exports a result of a database session as CSV | The statement |
rotate-asset-account, push-asset-account | Casvisor changes the password of a system account on the asset, by hand or on schedule; the user is casvisor and the method Account | The account's username and the result |
export-sessions, export-commands, export-records, export-assets | An administrator downloads a list as CSV or Excel; the method is Export | The number of rows, the file name and the filter |
These entries are written whatever logPostOnly says. The commands run in SSH and Telnet sessions are not here but on the Commands page.
Retention
Entries are kept until you delete them. There is no retention setting yet; trim the record table from the database if it grows too large.
Export and forwarding
Export on the list downloads the entries that match the current search, as CSV or Excel. With syslogAddress set, every new entry is also sent to a syslog server as it is written. See Export and syslog.
Commands and command rules
Casvisor records the commands run in SSH and Telnet sessions, from the web terminal, the SSH gateway and jobs, and the SQL statements, Redis commands and MongoDB calls run in database sessions; command rules block, hold for review or flag the ones that match a regular expression, for chosen users, groups, assets and asset tags.
Audit reports
A report of an organization's sign-ins, sessions, commands, file transfers, approvals, account changes and asset and permission changes over a week, a month or any dates, printed to PDF, downloaded as an Excel workbook, or emailed on a schedule.