SharePoint Audit Solution

I’ve written some code for SharePoint 2010 (is also possible to make work with SharePoint 2007) that allows users to view audit information relating to site, list and individual items.

I’ve also added the code to Codeplex, which you can download by clicking this link. The code in the project should be straight forward enough to follow and understand.

Basically, the project comprises of some layout pages which reuse a configurable user control to display auditing information within a paged grid control. Access to these pages is either via the edit control block (ECB) context menu or the ribbon interface.

Once deployed, activate the Item Level Auditing web feature.



You will now notice a view audit log menu item in the site actions menu:

In the ribbon for a library:

In the ribbon for a list item:

and in the ECB for a list item:

As an example, clicking the menu item while on a list item, the following audit information page is loaded:

The contents of the output are cached, which is all configurable through the AuditLogView user control. The columns that are displayed for each audit type (site, list or item) are also configurable by editing the corresponding class.

17 comments

  1. Vishal says:

    How can we track view event for list items? This solution tracks it only for document library.

  2. Panos Sid says:

    Can you please tell me how to enter the user control for the auditlogview feature? thank you in advance

  3. Kler says:

    Hi,
    First of all very good work congratulations
    I have downloaded the latest version. For the event “view list item” i can only see the view of the list not specific list item view.
    Is this possible through your tool?
    thx in advance

    • Stu says:

      Hi there,

      To view the audit log for a single list item, either select the item and from the ribbon click “View Audit Log” within the Documents tab, or bring up the ECB context menu for the item and select “View Audit Log”.

      If you select “View Audit Log” in the ribbon while the Library or List tab is selected you will see all list items.

      Cheers,

      Stu

  4. kevin says:

    possible to share the code?

  5. Kevin says:

    I can’t seem to see ‘view’ events on list items. I did just download this so believe I am up to date. I can see edits for list items, and views for doc library items.

  6. Arulmani says:

    Hi Stuart,

    I am also not getting the “view” event for item level eventhough I have downloaded the latest version of code, only I am getting update event log entry for item level. Can you please share the code if you have for “view” event.

    • Stu says:

      Check your audit settings for the site collection. Site Settings -> Site Collection Audit Settings (Site Collection Administration section) and verify that the “Opening or downloading documents….” checkbox is ticked in the Documents and Items section.

      • Arulmani says:

        Yes I have already done that, still it is working only for document library not for custom list item level view event.

  7. Pramod says:

    Hello,
    I am also unable to see View event for list items. Verified the site collection audit settings. Opening or downlaod… is checked. Please help.

Leave a Reply

Your email address will not be published. Required fields are marked *

Solve the maths problem shown below before posting: *

Follow

Get every new post delivered to your Inbox

Join other followers: