BetterShield
Appearance

How To Export the Activity Log as CSV With BetterShield?

2 min read

Download the current Site activity view as a UTC CSV file and recognize when the 10,000-row limit has been reached.

In BetterShield, Export CSV on BetterShield › Activity › Site activity downloads the rows selected by the current filters.

What it does

The file includes up to 10,000 matching rows. Each row starts with readable columns: Time (site) in the site’s time zone, Time (UTC), Event, Category, Severity, Who, About and Network. The raw record fields follow for scripts and audits. When more match, the screen warns that the result was limited and the final CSV line states that it was cut short.

Step 1: Open the feature

Apply the category, person, network, search, and date filters you need.

Site activity screen with Export CSV above the filtered activity table.
Export CSV uses the same filters as the rows shown on screen.

Step 2: Export the activity log as CSV

  • Select Export CSV.
  • Save the downloaded file in an access-controlled location.

The command-line equivalent is wp bettershield activity --format=csv.

Use date ranges small enough to stay below 10,000 rows. Export separate periods instead of relying on a truncated file.

What it can break and how to undo

Exporting does not change the log. The file can contain account names, network information, and operational details, so delete or retain it according to your own data policy.

Final Outcome

Open the CSV and confirm its first and last records match the filtered view. The first line names the columns above. Check the last line for a truncation notice.

Site activity screen with Export CSV above the filtered activity table.
Example Export activity view. Check the saved values and status on your own site.

On multisite

Network Admin has no export button. Use a site’s own log or wp bettershield activity --sites=all --format=csv.

This is how you can export the activity log as CSV with BetterShield.

Getting Stuck? Feel free to contact our Dedicated Support Team.

Close the open doors today

Install the free plugin. The first audit runs when you activate it, and all but one of the fixes wait for your choice.

Requires WordPress 6.7 or newer and PHP 8.0 or newer.

Get BetterShield