Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there a good reference for setting up logging levels in Sharepoint? I am trying to keep my logs to a manageable, usable size but still get useful information from them.

share|improve this question

1 Answer 1

You can use powershell commands to limit the amount of data being logged. ULS provides Windows PowerShell cmdlets for a number of operations, including:

Changing ULS configuration settings

Trace and Event Level throttling

Flushing current log and starting a new one

Querying and filtering Trace Logs

Merging Trace Logs from multiple machines

CmdLet Examples

Noun

Description

Purpose

Get-SPDiagnosticConfig

Retrieves Diagnostic Configuration values.

Diagnostic Configuration

Set-SPDiagnosticConfig

Allows setting Diagnostic Configuration values.

Diagnostic Configuration

Get-SPLogLevel

Returns IDiagnosticsLevel2 objects or displays a list of diagnostics levels.

Trace Log and Event Log Throttling

Set-SPLogLevel

Allows the user to set the trace and event level for a set of categories.

Trace Log and Event Log Throttling

Clear-SPLogLevel

Resets the trace and event levels back to their default values.

Trace Log and Event Log Throttling

New-SPLogFile

Ends the current log file and starts a new one.

Log File Control

Get-SPLogEvent

Reads/queries ULS trace logs.

Trace Log Querying and Filtering

Merge-SPLogFile

Combines trace log files from all farm servers into a single file.

Trace Log Merging

share|improve this answer
    
check here also. msdn.microsoft.com/en-us/library/ff595318.aspx –  Joseph D Surgeon Oct 2 '12 at 18:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.