Diagnostic logging in SharePoint 2010


In order to trace events in SharePoint or events that are somehow connected to the SharePoint, you can find helpful information on the following sites:

In general, there are three main places, where trace events are logged. You can find them in:

  • Windows Event Viewer
  • SharePoint logs (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS)
  • IIS logs (location specified on each website)

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS

Setup Logging in IIS:

1. Launch Internet Information Services (IIS) Manager.

2. In the Connections pane, select the desired website for which you want to configure logging.

3. Double-click the Logging feature in the Actions pane.

4. On the Logging page, select the desired logging format to be used.

5. Specify the location of the log file by typing a log path into the Directory text box. Alternatively, click the Browse button and select a directory to store the files.

6. In the Log File Rollover section, select the method to create the new log file. The options include specifying an Hourly, Daily, Weekly, or Monthly schedule, entering a maximum file size (in bytes), or selecting the option that puts a stop to the creation of new log files.

7. The final option requires you to determine whether to use local time for file naming and rollover.

8. After all the log file settings have been given; select Apply in the Actions pane to commit the changes.

NOTE: It is possible to either enable or disable a log file for a specific site by selecting Enable or Disable in the Actions pane of the Logging feature page. To enable logging for IIS 7.0, the HTTPLoggingModule must be installed.

Advertisements

About Andrej Dobrovoljc

Andrej Dobrovoljc

Posted on 24. May, 2011, in SharePoint and tagged , , , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: