Thorn Tech Marketing Ad
Skip to main content
Version: 1.4.0

Logging in StorageLink

TLDR

Purpose: Find the StorageLink log files for troubleshooting, user activity, and license events

Log Files:

  • /opt/swiftgw/log/application-*.log — Java application events and errors
  • /opt/swiftgw/log/audit-*.log — user actions, authentication, and (from 1.4.0) every access-control change made by an administrator or an identity provider
  • /opt/swiftgw/log/license-audit-*.log — license events such as activation, expiry, and cluster binding (new in 1.3.0)
  • /var/log/swiftgw/cloudinit.log — server issues at first launch

Retention: Logs in /opt/swiftgw/log/ are kept for 30 days or 3 GB, whichever comes first

Forwarding: Marketplace images from 1.3.0 on send the license-audit log to CloudWatch or Google Cloud Logging with the other logs. After an in-place upgrade, add it to the log agent configuration. On Azure, collect all three logs with the Azure Monitor Agent.

Containers: All three streams go to standard output as JSON, tagged application, audit, or license-audit

Product: StorageLink by Thorn Technologies — cloud storage gateway for secure file sharing

Overview​

This article covers the various log files used by StorageLink.

Log file locations​

These are the logs of interest when troubleshooting StorageLink:

/opt/swiftgw/log/application.log
/opt/swiftgw/log/audit.log
/opt/swiftgw/log/license-audit.log
/var/log/swiftgw/cloudinit.log
info

The Application and Audit logs have the date included in their name.

The log files within /opt/swiftgw/log/ have a retention of 30 days, or 3 GB (whichever of these comes first).

And this is what these logs do:

  • application.log: Java events and errors.
  • audit.log: User actions and authentication. From 1.4.0 it also records every access-control change: users and roles, folder grants, groups and memberships (including those an identity provider adds or removes at sign-in), identity providers, linked accounts, public keys, IP allow-list entries and cloud connections. Each record names who made the change (actorId=) and when; group and membership records name the group, the folder and the user beside their ids, and refused sign-ins for lack of storage access are recorded too. In 1.3.x, folder permission changes produced no record and the other changes went to the application log, so move any saved queries or alerts for them to audit-*.log.
  • license-audit.log: License events — activation, replacement, expiry, binding to the cluster, user-cap import skips and activation rate limiting. New in StorageLink 1.3.0; kept separate from the audit log so compliance records and user file activity do not interleave.
  • cloudinit.log: Server related issues that happen at first launch
Forwarding the license-audit log

Instances launched from a 1.3.0 or later marketplace image forward license-audit-*.log to CloudWatch or Google Cloud Logging alongside the application and audit logs. An instance upgraded in place writes the file locally but does not forward it until you add it to the log agent configuration. On Azure, the Azure Monitor Agent article collects all three logs and shows how to add the license-audit log to an existing setup.

Container deployments write all three streams as JSON on standard output, each line tagged application, audit or license-audit; see the Container Deployment Reference.

File permissions (1.4.0 and later)​

On the VM images, the StorageLink service runs with UMask=0027 from 1.4.0, so every file it creates, including the log files, is readable by the service account and its group only; audit-*.log is no longer world-readable. Existing log files are corrected at the first start after an upgrade. Read the logs with sudo, and if a log-forwarding agent runs as another account, add that account to the service's group or grant it read access to /opt/swiftgw/log/. application.properties is readable only by the service account. The container images are unchanged.