Export (0) Print
Expand All

Logging and events cmdlets (SharePoint Server 2010)

Published: May 12, 2010

You can use Windows PowerShell cmdlets to log system events and perform diagnostics.

Cmdlet name Description

Clear-SPLogLevel

Resets the Windows trace logging and event logging levels to their default values.

Get-SPLogLevel

Returns a list of objects or diagnostic levels.

Set-SPLogLevel

Sets the trace and event level for a set of categories.

Get-SPLogEvent

Returns results from a Unified Logging Service (ULS) trace log.

Get-SPDiagnosticConfig

Retrieves ULS diagnostic configuration values of the farm.

Get-SPDiagnosticsProvider

Returns a diagnostics provider.

Merge-SPLogFile

Combines trace log entries from all farm computers into a single log file on the local computer.

New-SPLogFile

Creates a new log file.

New-SPUsageLogFile

Starts a new usage log file on the current server computer.

Set-SPDiagnosticConfig

Sets diagnostic configuration settings on the farm.

Set-SPDiagnosticsProvider

Enables a diagnostics provider and updates its retention policy.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft