Sitecore 8:如何跟踪内容编辑 activity?

Sitecore 8: how to track Content Editors activity?

我们有一个网站采用 Sitecore 8.1 和多个内容编辑器。有什么方法可以记录他们的 activity,如列出他们根据 editing/publishing/unpublishing?

执行的操作

上周我们遇到了一个问题,我怀疑是由于有人取消发布了错误的项目造成的,但我需要确保情况确实如此,或者至少我希望将来有这种能力。 我是否需要创建自己的事件触发日志记录?

您可以使用 Sitecore Advanced System Reporter

Sitecore 6 附带了一个非常有用的功能,称为我的锁定项目。但有时,管理员用户可能希望查看所有锁定的项目,而不仅仅是他们锁定的项目。我写了一个小应用程序来做到这一点。然后我想到让它更通用,这样就可以轻松创建其他类型的报告。结果是一个小框架允许在很短的时间内创建多种类型的报告。在这个模块中,我提供了这个框架以及许多有用的示例报告,例如:

items modified updated in the last X days
items that have more than X children
items that are publishable but either do not exist or have a different version in the web   
   database.
items that are based on a particular template
items with validation errors
which templates have been linked to a workflow
locked items
publishable items with broken links
audit information
errors in the log files
items that have stayed in the same workflow state for more than X days 

等等。

您现在还可以对这些报告进行参数化,将它们另存为桌面上的链接、导出它们,甚至创建一个计划任务以自动通过电子邮件发送其中一些报告。此外,您还可以将命令应用于报告的项目。 您可以从以下网址下载模块:https://marketplace.sitecore.net/en/Modules/A/Advanced_System_Reporter.aspx

模块可用于 Sitecore 6.4 到 8。我不知道是否有您看到的功能,但您可以自定义它。

您可以查看这篇博文如何扩展它:http://www.seanholmesby.com/sitecore-auditing-with-the-advanced-system-reporter/

更新

安装模块

运行 模块并选择如图所示的报告。

运行 报告

查看报告或将其导出为 csv、excel 或 xml。

在 Sitecore 中没有完全开箱即用的报告来提供这些报告。您可以查看 Sitecore Audit Trail module which will log all the "editor action" audit information into a separate log4net appender. You can find more information on the module in this blog post,但请注意,该模块仅标记为与 Sitecore 7.5 兼容,使用 Sitecore 8.1 应该不难,即更新附加程序配置,因为 log4net 配置现在位于配置中的 <sitecore> 节点内。

Sitecore 在普通日志文件(在 Data\logs 中)中开箱即用地记录内容编辑器操作,它们以 "AUDIT" 开头,因此您可以找到它们。它记录诸如项目被保存、发布开始等内容。在日志文件中搜索以找到它们。

您可以将这些保存到单独的日志文件中以便于查看:https://sdn.sitecore.net/scrapbook/how%20to%20make%20sitecore%206%20write%20audit%20log%20to%20its%20own%20file.aspx

这在 Sitecore 8 中仍然有效,只是设置现在在 App_Config/Sitecore.config 中。