简体   繁体   English

SSRS:重新部署报告后,日志将被删除

[英]SSRS: Logs getting deleted when report is redeployed

Ex: I see that when I deploy a report 'A' on 01/01/2014 and when user hits the reports, I see the logs for that report. 举例:我看到当我在2014年1月1日部署报告“ A”并且用户点击报告时,会看到该报告的日志。 After adding some fixes to report 'A ' and then deleting the old version of the report and deploying the new version of the report on the report server with the same report name 'A' on 01/07/2013, I happen to loose all the logs associated with the first version of the report and happen to see only logs from 01/07/2014 for the Version 2 of the report only. 在为报告“ A”添加了一些修复程序,然后删除了报告的旧版本并在2013年1月7日在具有相同报告名称“ A”的报告服务器上部署了新版本的报告之后,我碰巧失去了所有与该报告的第一个版本相关联的日志,并且碰巧只能看到该报告的第2版从2014年1月7日开始的日志。

Is there any way I can keep the logs of the report usage of version 1 (that is from 01/01/2014 to 01/07/2014) though I deploy a version 2 with the same name after deleting Version 1 ? 尽管在删除版本1之后部署了具有相同名称的版本2,是否可以通过任何方式保留版本1(即从01/01/2014到01/07/2014)的报告使用情况的日志?

I am getting the SSRS logs from ReportServer.dbo.ExecutionLog. 我从ReportServer.dbo.ExecutionLog获取SSRS日志。

Thanks in advance. 提前致谢。

The execution logs should remain in dbo.ExecutionLogStorage, however , as you deleted the report and then uploaded a truly "new" version of it, the old record in the dbo.Catalog table was deleted, and a new one inserted. 执行日志应该保留在dbo.ExecutionLogStorage中, 但是 ,当您删除报告然后上载报告的真正“新”版本时,dbo.Catalog表中的旧记录将被删除,并插入一个新记录。 This means the ItemID in the dbo.Catalog table will have changed. 这意味着dbo.Catalog表中的ItemID将已更改。 Thus, you can't join on Catalog.ItemID = ExecutionLogStorage.ReportID. 因此,您无法加入Catalog.ItemID = ExecutionLogStorage.ReportID。

Try looking for records in your dbo.ExecutionLogStorage table that do not have a corresponding record in dbo.Catalog. 尝试在dbo.ExecutionLogStorage表中查找在dbo.Catalog中没有相应记录的记录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM