Skip to content

The audit log

macSCP keeps an audit log for every connection: a record of what happened in it, to look up after the fact. This page covers how to open it and what the S3 bucket changes add to it. For where the files live on disk, see Security.

  • A saved connection: right-click it in the sidebar and choose Audit Log…. This works whether or not the connection is open.
  • A connection you did not save: choose Sessions → Ad-hoc Connection Log…. All unsaved connections share this one log, which has no sidebar row of its own. Its Connected entries name the host and user, so you can tell the connections apart.

The log is a table with the columns Time, Event and Detail. A menu next to the search field narrows it to All, Transfers, File Ops, Terminal, Connection or Errors, and the search field filters the rows by text. Export as Text… writes what is on screen to a file. Clear Log… empties the log after asking; that cannot be undone.

The eight entries below have been written since v1.7.0. They are written for a connection you did not save as well as for a saved one.

Every change made from the S3 connection actions from a file’s metadata or from the version history leaves one entry, under File Ops and under All:

EventWritten when
Bucket createdYou create a bucket. The detail names it and says what macSCP read back from the bucket: nothing extra, “with versioning”, or “with versioning and Object Lock”. If the bucket already had a default retention, the detail adds that, naming the mode and the number of days.
Versioning changedYou turn versioning on or suspend it. The detail names the bucket and the new state.
CORS rules changedYou save CORS rules. The detail gives the bucket and the number of rules, or says the configuration was cleared. The rules themselves are not recorded.
Object Lock changedYou change Object Lock: a file’s retention, a file’s legal hold, or a bucket’s default. A retention’s detail names the mode and the date.
Metadata changedYou save a file’s metadata. The detail names the bucket and the file and says how many standard fields and custom pairs were sent — only the counts, never a value or a name. When the bucket’s default retention is Compliance, it says so and gives the days, because the new version receives that retention.
Version restoredYou restore an earlier version of a file from its version history. The detail names the bucket, the file and the version’s ID.
Version deletedYou delete one version for good. The detail says “permanently” and names the bucket, the file and the version’s ID. Nothing can undo this one, so its entry is the place to find out afterwards which version went.
Delete marker removedYou restore a deleted file from its row in the remote pane. The detail names the bucket, the file and the delete marker.

The entry is written at the moment the service accepts the change. For a new bucket it is written after macSCP has read the bucket back, and it records what the bucket turned out to have, which can differ from what you asked for. If the bucket could not be checked, the detail names what you asked for, since nothing was read. An attempt the service refused or that failed is logged too, as an error, and so is a bucket that was created but is not what you chose (see After you press Create): it appears in red and under Errors, and its detail says what was attempted. Something macSCP rules out itself before sending anything, such as a bucket name that is already in your list or a retention date that has passed, is not an attempt and leaves no entry.