Audit Trail Plugin

Audit Trail is a plugin to keep track of what is going on inside your blog. It does this by recording certain actions (such as who logged in and when) and storing this information in the form of a log. Not only that but it records the full contents of posts (and pages) and allows you to restore a post to a previous version at any time.

To summarize:

Log of user actions inside your blog – useful for finding out who did what in a multi-user system

Extensible, allowing other plugins the ability to add and display items in the Audit Trail

If you are multi-lingual then I always appreciate any translations that you can provide.

Usage

Once the plugin is installed then your actions are already being recorded. You can view the Audit Trail log from the Manage/Audit Trail page.

Note that some entries in the log can be clicked and will expand to show more details.

Options

From the options page you can configure exactly what actions are audited. Any plugins that support Audit Trail will also display themselves here.

Permissions

Users with the ‘edit_plugins‘ or ‘audit_trail‘ capability can view and administer the Audit Trail plugin. The ‘audit_trail‘ capability can be added with the Role Manager plugin.

Support & Bugs

Support and feature requests should be made through the Audit Trail support forum. You can contact me directly but I spend a very limited amount of time on direct support and you stand a better chance of being answered through the forum.

If you find the plugin useful then please do consider making a donation – it is appreciated and helps towards the maintenance of the plugin.

[…] and update them over time, reply to visitors’ comments, and so on. I installed the Audit Trail plugin for WordPress so my changes to posts are internally archived to prevent loss of information, and […]

You can see the problem, the ‘User’ value should be the name of the user and not the Operation.

I found where you made the modification for the csv generation ‘csv.php’ and I found where you created the functions get_items() and get_operations() in ‘audit.php’, can you provide me with the code equivalent to get_username() that I can enter in audit.php and call in csv.php. I need to output the username in the csv file.

Great Plugin! I’ve been using it for quite some time now. I know there is an auto expire after a certain period of time.
Still…. Is there a way i can select random actions from the results page and delete them?
I can see at the top saying mass actions => delete (as found in the posts or comments) but cannot figure out how to randomly select them.
I was hoping for something like this in this updated version.
Thanx in advance

but all the filtering, apart from lines per page, is on the input/data collection side, so I am confronted with viewing about 29,000 records for 30 days of audit trail, (I have not been collecting post/page and link data so far) So the data is a bit like looking into a forest. Despite your updates of version 1.0.8 the records show me an audit trail time of that of my hosting provider (GoDaddy – Scottsdale, AZ) rather than the real times I’m used to of UTC or UTC+1(when DST as at present) i.e. UK time, as set in the WP 2.8.2 general settings

I’d like some filtering on the view side, something of the nature of dragging an item (user, action, target or IP) to one of three areas, longterm_filter, session_filter and shortterm_filter.

I may not be interested in looking at the page view records relating to say googlebot so I would drag googles IP to the longterm area, so its records would remain filtered out until I reset all filters or specifically disable the filter

I may not be interested in my own (or someone elses) records so I would drag an IP or user to the session filter where it would remain until I logout or remove it from the filters, and when I log back in the filter has been cleared.

I may not be interested in some records so I would drag an item to the short term filter where its filtering out would remain active until I refresh the data listing apart from moving from page to page of the say 100 record blocks.

I hope this scheme makes sense or is workable, my knowledge of php is a bit too limited or I would probably have worked it out and forwarded the code for inclusion into the plugin

Have used your plugin for 18 months now and am thoroughly satisfied – to the extent that the new ” Paypal” logo on the top inspired me to make a small donation!!

A couple of issues, the big one is not being able to exclude a particular user (me!) from the listings which I see is on your bug list, while the second is the excel download of data where the data does not tie in with the advertised header.

Great plugin! I use it to track number of hits to my blog by username; unfortunately, there’s one small bug (already mentioned by another user) that makes this usage problematic. Instead of listing the username under “User” in the CSV file, Audit Trail lists the action. This makes it impossible to sort by user in Excel and thereby extrapolate the data. Will happily make a further donation to PayPal if this issue is remedied. Thanks much!

Great plugin. I was wondering though is there a way to make it display the users name as well as the login name, or instead of. the only reason I ask is because I use the facebook connect and for that to work it automatically uses the facebook user ID as the login name. This gets confusing when I am looking at the records.

There is a bug probably in Audit Trail Plugin for time zone offset. If you set the time zone in WP using UTC offset rather than country/city name then wrong time is shown in the log. I found this error using WP-301 & AT-1.1.7 Please verify it.

This plugin does exactly what I wanted and was simple to set up and
use. I have the same problem as the previous writer regarding the
time; it does not show up correctly (the date is good), both with
UTC or with City setting. Minor annoyance with an otherwise really
nice little plugin! Lin

I’m would like to only log event from logged in users and ignore public actions. I tried to add 0 to the ignore list of users, but it still logs public view. Is there a way for it to only track logged in user data?

Hello John,
What a wonderful plugin. 🙂
I wonder though. Does it work in a multisite environment?
And if so, should it be network activated or site-by-site? Does it create any additional tables on the dB? If so is there an extra table for each site it gets activated or just one global table? Does it leave any data or tables after de-installation or de-activation?
Thank you in advance.

Looking for a way of monitoring visitors logging in and using the site, this looks exactly what I want, and I shall certainly make a donation if I can iron out the couple of wrinkles I have, and then use it. I am testing it on WP 3.3.1

1) I see that other have had problems in the past in not being able to delete records. I am having the same problem – I tick the checkboxes for records to be deleted, go to ‘Bulk Actions’ where the only option in the list is ‘delete’, but when I click ‘Apply’, nothing happens.
2) I see references to print files in some of the other posts, but cannot see how to do so, or to activate a print option or function.

Can it track changes to things like Theme settings, widgets etc. i.e. aside from posts/pages, I’m looking for something to track those kinds of changes. If Audit Trail doesn’t do that, do you know anything that does?

Hello. I love this plugin and have made a donation.
When I try to download to CSV, the file is zero bytes. Totally empty.
The plugin is tracking several activities, boxes checked, plenty of data.
If, before clicking the Excel icon, I select every line, still, CSV is empty.
What might I be doing wrong?
Thank you in advance.

Hi, This looks great. Question for you: Can it track changes to template files? Our client wants to use a 3rd party SEO consultant, but we wish to track what they do and when, so we can be sure who is accountable if something goes wrong.

I was wondering how to configure Audit Trail so that it works with fail2ban?
Is there configurations that need to be done within the fail2ban config as well?
Any newbie help would really be appreciated