Audit logging

Audit logging allows administrators to track changes across their TestRail instance. With auditing enabled, and the audit level set to High, every entity that’s created, updated, or deleted is recorded. This provides a full trail of activity for compliance, accountability, and troubleshooting.

 

Audit Logging is an Enterprise-only feature. Contact us if you need to upgrade your license to the Enterprise tier.

Enabling and configuring auditing

You can configure audit logging from the administration console:

  1. Go to Admin > Site Settings > Auditing.

  2. Choose an Audit Level:

    • Low – Minimal logging

    • Medium – Standard logging

    • High – Full tracking of all entities created, updated, or deleted

  3. Save your changes.

Configuring Audit Log storage

On the Auditing > Configuration tab, administrators can adjust how many records are displayed and stored:

  • Number of Rows – Adjusts how many records appear on the log page.

  • Maximum Number of Audit Records Stored – Defines storage limits for records.

  • Maximum Number of Days to Store Records – Defines retention period.

 

For TestRail Server installations, make sure the background task is enabled so that audit data is purged according to the defined retention policy.

Additional options for Server Administrators

If you’re running TestRail Server, you have extra flexibility:

  • External Logs – Logs can be written to an external location and viewed using your preferred log reader.

Configuration requirements for upgrades

If you are upgrading your TestRail Server installation (not a fresh install), you need to:

  1. Create an audit folder for your installation.

  2. Set the correct permissions so TestRail can write to this folder.

  3. Add the folder path to your config.php file by including the following line:

define('AUDIT_PATH', '<filepath>');

Using the audit log

Once auditing is switched on, you can monitor CrUD changes (Create, Update, Delete) across the entities in your TestRail instance, by navigating to the Auditing > Log tab.

On the Log tab, depending on your auditing level, you’ll see the following changes are recorded to the log:

Auditing level Changes recorded
High Updates, deletions, creations
Medium Updates, deletions
Low Deletions only

You can configure the level of logging depending on the requirements of your team. Each row of the log contains the following information:

Column level Column description
Date Date and time which changes were made
Entity Type The TestRail entity that was changed
Entity ID The ID of the entitiy that was changed
Entity name The defined name of the entity that was changed
Action The type of change – Change, Delete, or Create
Author The username of the user who made the change
Mode The mechanism which the change was made – UI or API

With logging activated and with some audit logs generated, you can filter for specific events using the Log filter. And if you wish to export the log for more detailed analysis, you can do so using the Export button.

Audit log timestamps and timezones

TestRail records the time of every audit event in Coordinated Universal Time (UTC). Times are converted for display, so changing a timezone setting never changes the stored record.

  • Displayed timezone: The log shows times in the timezone of the user viewing it. If the user has no timezone set, TestRail uses the instance's default timezone.
  • Daylight Saving Time: TestRail applies the daylight saving rules of the selected timezone. For example, "Central Time (US & Canada)" shows UTC-6 (CST) in winter and UTC-5 (CDT) in summer, based on the date of each event.
  • Historical records: Each record is converted from its own stored UTC value, so past events show the offset that applied on their date. Changing a timezone later changes how times are displayed, not the record itself.

Filtering the log

With logging activated and some audit logs generated, you can filter for specific events using the Log filter.

Exporting the audit log

You can export audit data in two ways:

  • From the Log tab (recent activity, up to 7 days): Click Export, choose CSV or Excel, then choose a period: Yesterday, Today, Last three days or Last week. The file downloads immediately. Exported timestamps match what the log displays: they are in the timezone of the user who runs the export.
  • From the Export tab (full log): Go to Auditing > Export and click Schedule export. TestRail generates the full audit log in the background as a zipped set of CSV files and saves it for you to download. The export is available for 10 days and is then removed automatically, so download and archive it within that time. These files use the instance's default timezone, and the times are fixed when the file is generated.

Exported files don't include a UTC value, a UTC offset or a timezone label.

For consistent audit records, use a standard timezone for exports and note it in your audit procedures.

 

The Forget User functionality will also obfuscate the user details in the audit log within TestRail.

AI-specific auditing

When generating test cases with AI, administrators may want visibility into how AI is being used within their TestRail instance. Audit logging now extends to the following AI actions:

  • Create AI - Logged when a new test case is generated by AI.

  • Update AI - Logged when an AI-generated test case is edited by the user.

  • Delete AI - Logged when an AI-generated test case is deleted.

These entries allow administrators to trace the lifecycle of AI-generated content and ensure compliance with internal standards or external regulatory requirements.

 

Was this article helpful?
5 out of 9 found this helpful