Casvisor
Audit

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

FieldMeaning
Created timeWhen the call was made
Organization, UserWho made it
Client IP, User agentFrom where and with what
Method, Request URIThe HTTP call, such as POST /api/update-permission
ActionThe API action, such as update-permission or stop-session
ObjectThe request body: the asset, permission or session as sent
ResponseWhether 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.

ActionWhenDetail
ssh-connectA connection through the SSH gateway logs in to the asset
ssh-forwardA gateway connection forwards to a destination for the first timehost:port, or the socket path
sftp-downloadA file is opened for reading over SFTP, or downloaded in the file panelThe path
sftp-uploadA file is opened for writing over SFTP, or uploaded in the file panelThe path
sftp-mkdir, sftp-rmdir, sftp-removeA folder is created or removed, or a file removed, over SFTP, or a folder created in the file panelThe path
sftp-deleteA file or folder is deleted in the file panel of an SSH sessionThe path
sftp-renameA file or folder is renamed over SFTP or in the file panelold -> new
sftp-symlink, sftp-linkA link is created over SFTPlink -> target
file-upload, file-download, file-mkdir, file-rename, file-deleteThe same in the file panel of an RDP sessionThe path, or old -> new
file-create, file-mkdir, file-read, file-write, file-rename, file-deleteThe remote desktop uses the redirected drive of an RDP session; file-write once the file is closedThe path, with the bytes written for file-write
clipboard-copy, clipboard-pasteText is copied out of or pasted into an RDP sessionThe text, up to 1000 bytes
session-monitorAn administrator opens the live view of a sessionThe session
session-replayAn administrator replays or downloads a recordingThe recording file

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.

Edit on GitHub

On this page