Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you handle audit logging with SSRS?

I have some reports in SQL Server Reporting Services 2005 that I need to keep audit logs for. The audit log should include who ran what report with what parameters. I can't use Windows authentication.

What is the best way to log this information?

like image 602
Lance Fisher Avatar asked Aug 12 '08 02:08

Lance Fisher


People also ask

What is used to audit a report usage in SSRS?

To access audit data, you can query that table directly, or you can use one of three views in the ReportServer database: ExecutionLog, ExecutionLog2, and ExecutionLog3.

How do I check my reporting services log?

The SSRS log file can be found in C:\Program Files\Microsoft SQL Server\MSRS12. SQL2014\Reporting Services\LogFiles (for SQL Server 2014). Log file settings control how verbose the log file content is and the maximum size that the file can grow to.

How do I check the SSRS error log?

If you are still having trouble finding your SSRS error log files try the following: launch the SQL Server Error and Usage Report Settings application (Start -> All Programs -> Microsoft SQL Server 2005 -> Configuration Tools -> SQL Server Error and Usage Reporting) Click the Options button.


1 Answers

The previous comments were dead on accurate that you can mine the data from the ReportServer ExecutionLog table in SQL Server 2000/2005 or the ExecutionLogStorage table in SQL Server 2008. If you are using form-based authentication to access the reports instead of windows authentication, then you are probably passing some unique UserID, CompanyID, CustomerID, or other value as a parameter in your reports. If this is the case, then the built-in table captures the parameters already. If you aren't passing the unique user identifier as a parameter, then you will probably need to rely on logging report executions in your application itself.

like image 181
Registered User Avatar answered Sep 19 '22 11:09

Registered User