The activity log: who did what on your sites
Last updated
The activity log is a single timeline of what happened across your sites. It records changes made inside WordPress, such as logins, new users and plugin installs, and the actions MaintainHQ took for you, such as updates and backups.
It answers questions like “who installed this plugin?”, “when did this person last log in?” and “what did MaintainHQ do last night?”. It can also alert you when something looks wrong, such as a new administrator appearing or a burst of failed logins.
What is recorded
Events come from two places:
- WordPress: logins (including failed ones), users being added or changed, plugins, themes, WordPress core (the main WordPress software), key settings and the built-in file editor. These are reported by the MaintainHQ connector plugin on each site.
- MaintainHQ: what MaintainHQ and your team did on the site, such as updates, backups and changes made with an API key.
Passwords are never recorded. A failed login names the WordPress account only when that account exists.
Opening the log
Open Activity log under Look after in the left-hand menu to see every site. Each event shows:
- The date and time.
- A plain-English summary of what happened.
- The site, which links to that site’s page.
- Who did it: “By” a MaintainHQ user, or “User” followed by the WordPress username.
- For WordPress events, where it came from (see below), and the IP address if one is kept.
- A category label and a severity label.
Events load 50 at a time. Press Load older events at the bottom to go further back.
Filtering the log
The bar at the top narrows the list down. Filters combine, so you can ask for “failed logins on one site in the last 24 hours”.
| Filter | Options |
|---|---|
| Search events | Free text search across the events. |
| Site | All sites, or one site. You can also filter by tag or client. |
| Where | WordPress and MaintainHQ, WordPress only, or MaintainHQ only. |
| Category | Logins, Users, Plugins, Themes, WordPress core, Settings, File editor, MaintainHQ actions. |
| Severity | Critical, Warning, Notice or Info. |
| Source | wp-admin or site, WP-CLI (the WordPress command line), Scheduled task, REST API, XML-RPC, or MaintainHQ. |
| User | One WordPress username, when there are any to choose from. |
| Period | Last 24 hours, 7 days, 30 days, 90 days, or Everything kept. |
The log for a single site is also shown on that site’s own page.
Privacy and alerts settings
Press Privacy and alerts at the top right of the Activity log page to choose what is kept and when you are alerted.
| Setting | What it does | Default |
|---|---|---|
| Visitor IP addresses | Shortened (the last part removed, for example 203.0.113.0), Full address, or Not kept. | Shortened |
| Keep events for (days) | How long events are kept before they are deleted. Between 7 and 365 days. | 90 days |
| Alert me when someone becomes an administrator | Raises an alert when a WordPress user is given the administrator role. | On |
| Failed logins that raise an alert | How many failed logins trigger an alert. Between 3 and 1000. | 20 |
| Within (minutes) | The time window for those failed logins. Between 1 and 1440 minutes (one day). | 15 minutes |
Press Save to apply. Only the account owner, or a team member who can see every site, can change these settings. Everyone else can view them.
Using the log well
- After a site breaks, filter to that site and the last 24 hours to see what changed just before.
- Check the Users category now and then for administrator accounts you did not create.
- If you get a failed login alert, filter to Logins and look at the usernames and IP addresses being tried.
- Keep IP addresses Shortened unless you need full addresses: it is kinder to visitors’ privacy and usually enough to spot a pattern.
For a routine to build these checks into, see the WordPress maintenance checklist.