Summary: This blog post will show you how to configure Hybrid Auditing in SharePoint 2016. It will also point out some considerations when deploying this new feature.
Microsoft released a new hybrid feature for SharePoint 2016: Hybrid Auditing. This feature will automatically upload your on-premises user activity logs to Office 365, so administrators can generate reports for users across SharePoint on-premises and Office 365.
* Note: This feature is still in preview! The configuration and capabilities might change in the future.
Configuring Hybrid Auditing
Microsoft did a great job documenting how to configure this new feature for SharePoint 2016. The steps are outlined in this article: https://technet.microsoft.com/en-us/library/mt622371(v=office.16).aspx. I am not going over every step, I am just summarizing the steps below:
- Meet the prerequisites
- Turn On Audit Log Search Recording
- Run the Hybrid picker and select Hybrid Auditing
- Check Audit Log Report
Thanks to Vlad Catrinescu who reminded me that you need to restart the Microsoft SharePoint Insights service after patching your SharePoint 2016 farm.
You can do this by running the following PowerShell code:
Add-PSSnapin Microsoft.SharePoint.PowerShell Stop-SPService -Identity "Microsoft SharePoint Insights" -IncludeCustomServerRole Start-SPService -Identity "Microsoft SharePoint Insights" -IncludeCustomServerRole
Verify your configuration
If you want to verify that the configuration was successful, here are some tips:
Get Microsoft SharePoint Insights configuration
If you want to make sure that you Hybrid Auditing configuration was done correctly, you can use the following PowerShell cmdlet to see the current configuration:
This will show you the current configuration for your Hybrid Auditing feature. This might also help you to find any issues you're facing.
Configure usage and health data collection
In Central Administration, under Monitoring -> Configure usage and health data collection make sure "Enable usage data collection" is checked.
For now I am not sure which checkboxes are required for the hybrid functionality, but these are the ones I have active at the moment.
After configuring Hybrid Auditing, I found that I wasn't getting any on-premises results from the Office 365 Security & Compliance center.
Here you can find some issues that I ran in to and the solution for these issues.
Failed to start a service (Microsoft SharePoint Insights service) that is needed for Hybrid Auditing (Preview) scenario
After running the Hybrid picker I would get this error. It seems that there is a time-out when the picker tries to stop and start the Microsoft SharePoint Insights service. To get around this error, make sure the Microsoft SharePoint Insights service is started from the Services on Server or Services in Farm menu in Central Administration.
Results from on-premises aren't shown in the Office 365 Security & Compliance Center
During my testing, I found that the user mapping isn't done correctly. As this is a preview feature, I am hoping this will be resolved when the feature will be GA.
I have a user named Kim Akers. In Active Directory, this user is known as:
- Userprincipalname: email@example.com
- User logon name (pre-Windows 2000): sprelated\kimakers
Kim works in both SharePoint 2016 (on-premises) and SharePoint Online.
Opening the Security & Compliance Center in the Office 365 Admin Portal, the "Users" field automatically resolves "Kim" as "Kim Akers". See the screenshot below as a reference:
The results coming back for this search only show the SharePoint Online activities for Kim.
This is because the results for the on-premises activities for Kim are actually displayed under the user sprelated\kimakers.
Until now, I haven't found a way to find results for on-premises users directly. The only way to find on-premises activities is to leave the "Users" field empty. This means you will get all results, without any user filter. This makes it hard to find the activities for on-premises users.