If you are looking for answers to questions like above then read on.
It has been a frequent asks to have an easy way to figure out when a particular test artifact got deleted and by whom.
At present all this information goes in TFS collection database table ‘tbl_AuditLog’. But it’s not straightforward to interpret various columns available in this table. One has to take joins with various other tables present in different databases and still interpretation of some columns lies in code only. Thus it is very hard to get this information in human readable form.
To ease this effort, we have created a command line tool that makes this job a breeze.
Given a Team Project Collection Url, it will create a .csv file in which it will write complete audit log, replacing every entry with its corresponding interpretation.
Downloads:
1. Visual Studio 11 compatible bits of the tool -- Require Visual Studio 11 or TFS 11 to be installed on the machine
2. Visual Studio 2010 compatible bits of the tool -- Require Visual Studio 2010 or TFS 2010 to be installed on the machine
3. Source code
Usage of the tool: TFSLogs.exe auditlog /c:
Sample output of the tool:
Permissions required to run the tool:
User should be a TFS admin and should be added on TFS Management Console – ‘Administration Console Users’ group.
Following are some important points to note:
1. This tool will not work against hosted TFS because Audit log is not available in case of TFS on Cloud.
2. With time as more and more operations are performed on the TFS, number of entries in Audit log table will keep on increasing. Thus depending upon the size of the Audit log table, this tool may take some time to get the complete log. Hence it is advisable to run the tool on the machine in which TFS is installed.
Please try out this tool and let us know your views regarding it.