Home > Administration > Share SharePoint Logs over HTTP

Share SharePoint Logs over HTTP


SharePoint 2010 Logging & Correlation feature is a very great thing. It is helping a lot for debugging lot of issues for the administrator. But it adds additional overhead to administrators, when development team keep asking for logs for a particular correlation id.  This becomes very true in environments lower than production.  How to save our own time from this :).

There are quiet a few blogs which explains BCS way of doing this

http://www.shillier.com/archive/2010/08/05/Using-Business-Connectivity-Services-to-Display-SharePoint-2010-ULS-Logs.aspx

It comes with an advantage of a centralized place of  SharePoint logs from all the servers in the FARM.  But in my scenario, BCS is very costly solution as DB size keeps increasing, also i want to share only my WFE log which developers are interested in. (Also i have an advantage only one WFE).

Keeping these in mind, i attempted to use a traditional method of sharing the entire logs folder through IIS website.

Create Application Pool

Name: Logs

Select the .Net Framework Version as “No Managed Code”, rest leave as it is. And then click OK.

Create IIS Web Site

Right Click Web Sites tab and Click on ‘New Web Site‘. Fill out the form, and select the application pool as ‘Logs’ which was created earlier. Here we identify the site by the host name. In my case i have given full server name as host name Eg. servername.domainname.com

Once the site is created, Enable ‘Directory Browsing’ for this site.

Now we are all most done.  But if you browse to the site you will see the files

Create New MIME Type

Select the ‘Logs’ web site from the Left hand side tree. Click on ‘MIME Types’. Click ‘Add’ and enter .log for the extension & MIME type as ‘text/plain’.

That’s it.

Now you should be able to access the logs over http. Like http://servername.domainname.com.

Hope this helps someone.




Advertisements
Categories: Administration
  1. No comments yet.
  1. No trackbacks yet.

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: