ULS logs in SharePoint 2013/SharePoint 2010 on premise

ULS (Trace) Logs in SharePoint 2013/SharePoint 2010 on premise

Here I would explain details on how to write to ULS logs using code behind (this will be covered in next post), also I would focus on how to change ULS logs file path. This all implies for SharePoint on premise and not for SharePoint Online.

First let’s start with where ULS logs are stored by default on server and how to change the default path.

Following are details for SharePoint 2010

To find ULS logs path on server, need to go to

Central Admin -> Monitoring -> Configure Diagnostic Logging under Reporting

configureULS

Click on Configure Diagnostic Logging will take us to Log Details page from where we can check path for ULS(Trace) logs.

ULSPath

Default path is (14 Hive): C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS

From here we can change path if we wish to store ULS logs to different location else it will be stored at above location on server.

Similar Details we have for SharePoint 2013, there is no change but for your reference I would add Screenshots here.

To find ULS logs path on server, need to go to

Central Admin -> Monitoring -> Configure Diagnostic Logging under Reporting(Same as SharePoint 2010).

SP2013

Click on Configure Diagnostic Logging will take us to Log Details page from where we can check path for ULS(Trace) logs.

Here I have changed default path(15 Hive) to point to other path on server.

SP2013Path

Other details can be configured are

  • Number of days to store logs files
  • Restrict Trace log

This includes details on how to view ULS log files from server and also how to modify default location for ULS logs, next article would focus on how to write custom message to ULS logs.

————————————–

for queries, suggestions, feedback contact me on

email :bipinparshottam@gmail.com

skype: bipin.pankhania

Advertisements

2 thoughts on “ULS logs in SharePoint 2013/SharePoint 2010 on premise

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