Thursday, October 20, 2016

Configure diagnostic logging in SharePoint 2016

Configure diagnostic logging location in SharePoint 2016 with PowerShell.

Example:
Change the location for Diagnostics log(ULS):
set-SPDiagnosticConfig -LogLocation “D:\Logs\ULS”

Disk space:
Set-SPDiagnosticConfig -LogDiskSpaceUsageGB 500

Change the location for Usage and Health log:
set-SPUsageService -UsageLogLocation “D:\Logs\Health”

Get current log levels:
Get-SPLogLevel

Set category to default:
Clear-SPLogLevel

References:
https://technet.microsoft.com/en-us/library/ee748656(v=office.16).aspx

No comments:

Post a Comment