Ben Curry - CISSP, SharePoint Server MVP

All MindsharpBlogs

http://www.microsoft.com/mspress/books/10623.aspx

My Links

Archives

Image Galleries

Blog Stats

Favorite SharePoint Books

My Favorite Blogs

Configuring Trace and Event Logging (WSS V3 and SharePoint Server 2007)

In Central Administration > Operations > Logging and Reporting, you have the ability to set the Event Log and Trace Logging levels. In case you didn't know, you must click OK at the bottom of the page for EVERY category and level combination. You cannot go through all of them, configure each, and then click OK. So, this is a very time consuming process (hours) if you follow best practice and set every level. Additionally, if you ever set Category=ALL, and change a level, it will overwrite all of your previous settings. You also cannot set the levels for items such as Indexer Plug-ins from the GUI interface...

So, there has to be a better way, right? Yes! Use stsadm.exe.

First, you can run stsadm.exe -o listlogginglevels (optionally, you can use the -showhidden parameter to show items like the Indexer Plug-in)

This will list all of your current levels for reference and future use. You can append a >filename.txt to the end of the command to capture it to a text file.

When you are ready to change logging levels en masse, you use stsadm.exe -o setlogginglevel -category -tracelevel -windowslogginglevel

Simply create a line in a batch file for every level you want to modify. If the service has spaces, like the Forms Services Administration category, you must surround the category with parenthesis. While this whole command line process is time consuming, it only needs to be done once. This file can then be reused in multiple farms, or in the same farm when performing Disaster Recovery (you do have a DR plan to add it to, don't you?).

Ok, Ok, if you must do it all on one line, you can add multiple categories on one line, seperated by a semi-colon. For example, stsadm.exe -o setlogginglevel -category e-mail;”Forms Services Administration” -tracelevel unexpected -windowslogginglevel error

This example changed e-mail and Forms Services Administration simultaneously. All categories given in a single line must use the same trace/log levels, however.

Thanks to JD Wade from Mindsharp's Las Vegas summit for finding the commands.

Ben Curry

Mindsharp

posted on Sunday, February 18, 2007 7:56 PM

Feedback

# re: Configuring Trace and Event Logging (WSS V3 and SharePoint Server 2007) 2/19/2007 4:46 PM Gavin Adams

Ben,
thanks for the post.
Also had a great time in Las Vegas!.


Just a clarification on the command the option for hidden items is -showhidden.

Cheers,
Gavin

# autocad kursu 9/16/2008 4:32 AM autocad kursu

very good

# çizgi film 9/16/2008 4:33 AM çizgi film

very good

# film izle 9/16/2008 4:33 AM film izle

very good

# gaziosmanpaşa 9/16/2008 4:34 AM gaziosmanpaşa

very good

# gelinlikler 9/16/2008 4:34 AM gelinlikler

very good

# gaziosmanpaşa 9/16/2008 4:35 AM gaziosmanpaşa

very good

# gaziosmanpaşa 9/16/2008 4:36 AM gaziosmanpaşa

very good

# gaziosmanpaşa 9/16/2008 4:37 AM gaziosmanpaşa

very good

# havuz 9/16/2008 4:37 AM havuz

very good

# Havuz 9/16/2008 4:38 AM Havuz

very good

# ilahi dinle 9/16/2008 4:39 AM ilahi dinle

very good

# Mercedes Yedek Parçaları 9/16/2008 4:39 AM Mercedes Yedek Parçaları

very good

# müzik dinle 9/16/2008 4:40 AM müzik dinle

very good

# müzik dinle 9/16/2008 6:37 AM müzik dinle

very good

# Cafe PayLaşım 9/28/2008 12:02 PM PayLaşım

Thanks

Title  
Name  
Url
CAPTCHA
Protected by Clearscreen.SharpHIPEnter the code you see:
Comments