.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Best way to turn ON & OFF ULS/sharepoint logs.

Posted By:      Posted Date: October 21, 2010    Points: 0   Category :SharePoint

I am looking of ways to debug the ULS or sharepoint log files whenever we encounter the sharepoint errors on the application. 

But if I set the log files to be always ON (through central admin) it will grow to an extent that server space gets full. My main goal is to go and troubleshoot the log files whenever I encounter the errors ( I have customerrros & stack-trace changed in web.config).

Please suggest what is the best option to set up the log files (central admin or STSADM or sharepoint APIs) such that hard disk space is not an issue plus whenever I need to debug the log files it gives me all information. Also If there are any good tools/utilities to view log files, please suggest.


View Complete Post

More Related Resource Links

Sharepoint and IIS/Windows Event Logs in a single view

Hi - I'm coinsidering addng sharepoint log reading capabilities into an application I've built for reading windows and IIS logs (for more info http://logenvy.com). I know there are quite a few applications capable of reading sharepoint logs (a number are listed here http://stackoverflow.com/questions/781179/sharepoint-2007-log-viewer). Does anyone think the capability to analyse windows and IIS logs alongside sharepoint logs would be useful, or have any logging requirements not well met by the current set of tools? I'm especially keen to explore useful/interesting data visualizations on top of data logs.

Turn off logon dialog box when using Sharepoint as an external homepage

This is a simple question.  I am creating a web site that is both external and extranet.  I wan to be able mak e like 5 page viewable to everyone on the net and 5 pages to viewable by authenitcated users.  I have extended the web application.  I cannot get rid of the darn authentication dialog.  It keeps popping up.  Only need it to pop up when you go the extra pages.   How is this done?   Thanks in advance Mike

Incorrect number of users reported in SharePoint Usage Logs

* See last post - issue appears related to KB 969231 *   It seems SharePoint 2007 usage logging with anonymous access worked in IIS6 but not IIS7. Is there a way to fix it?   Background: The SharePoint Usage logging was working fine (approximately 20,000 hits per day) until the upgrade to a new IIS7 environment. The configuration in both environments is very similar (both Anonymous Access and Windows Authentication are enabled) however the new environment is only showing 600 hits per day.   This forum response from Cornelius J. van Dyk [MVP] suggests that Usage analysis/logging with Anonymous Access doesn't work, however it does work in our old IIS6 environment (a dash "-" is just shown in the usage logs which suggests an anonymous user): http://www.eggheadcafe.com/software/aspnet/29823445/sharepoint-doubt-is-there-any-way-to-find-out-how-many-users-have-logged-in-to-the-sharepoint-site.aspx   So I've concluded it's differences in IIS6/IIS7 authentication. Reading articles on the differences (e.g.  single auth pipline instead of two-stage) doesn't highlight any obvious reasons why this wouldn't work.   Any help would be greatly appreciated.   Thanks,   Peter

SharePoint Logs for Site creation and Deletion - Common Administration tasks


Is it possible to get logs of SharePoint 2010 Site creation and deletion like Admin job logs in the Web Analytics ? Else where can I get a report of that ?


Kindly help.

Sharepoint 2010 Audit Logs with Report Builder 3.0



I'm trying to create a report using Report builder of a sharepoint 2010 list's custom audit log, is there a way to create a report using report builder 3.0 without directly using sharepoint's Database tables?


Search Service Application creation causes DB errors in SharePoint Logs

When I add a Search Service Application in CA, I receive database errors in the LOG files related to permissions.  The service account is the same as the Farm service account in this case, which does have the db_owner role for the Search Service databases.  I have tried re-installing SharePoint Server 2010 three times.  The first two, I was using a service account that had less rights and failed to create the Search Service Application databases.  Using the Farm service account, I was able to create the Service, but still getting the errors mentioned below. 

01/11/2010 09:44:30.65  OWSTIMER.EXE (0x09A8)                    0x0C20 SharePoint Foundation          Database                       880i High     System.Data.SqlClient.SqlException: The user does not have permission to perform this action.     at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) 

Access Denied while user logs out sharepoint 2010 FBA site




I've sharepoint 2010 site configured as forms based authentication having my custom membership provider. 

On this site, i've a simple webparts that basically contains a asp.net login status control to allow users to login/logout. it works fine .. when user is not logged in it shows Login link that redirects users to the login page and when user is logged in, it shows Logout link. 

but when i click logout link, user is not logged out completely. I get this error - Access denied and when i go back to the page (by clicking on the link provided on error page or just refresh the page) - the user is still logged in on the site !!

Here's the code snippet of my webpart:

This exact same functionality is working fine MOSS but it doesn't seem to work here !!


protected override void CreateChildControls()
LoginStatus loginStatus = new LoginStatus();
loginStatus.LoginText = "Log in";
loginStatus.LogoutText = "Log out";
loginStatus.LogoutAction = LogoutAction.RedirectToLoginPage;


Why SharePoint incremental crawl doesn't use Audit Logs


Hi All,

I am just wondering why SharePoint (2007) search incremental crawl uses change log. Why is it not using Audit logs if they give more information.

Can someone help me understand this.




how to turn on the HTML designer for sharepoint 2010 applications


I would like to be able to use the HTML designer for SharePoint .aspx pages such as application pages or user controls.

I can turn on the HTML designer for WEB applications and create a web form and see the designer interface but when I create a SharePoint application page or
any related artifact like an .ascx or .aspx file then the HTML designer is no where to be seen forcing me to work with a dummy web application project
create the ui page then imported into the SharePoint project making the whole issue kind of an oxymoron... if SharePoint is sooooo ASP.NET compatible then
why don't the tools reflect this point?

any help on this will be greatly appreciated!


l. carlos rodriguez

Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor

Displaying SharePoint lists in Web Parts

When you create a built-in or custom list in Microsoft Windows SharePoint Services, Windows SharePoint Services creates a Web Part, a basic building block of a SharePoint site, to display that list. These Web Parts are called List View Web Parts. Windows SharePoint Services stores List View Web Parts in the site collection Web Part gallery. (The site collection Web Part gallery is the most central gallery of Web Parts for a work group. By default, the gallery name is the name of the site, such as "Our Team Site Web Part Gallery." )

Take a tour of your SharePoint site

What is a SharePoint site for?
A SharePoint site is a Web site that provides a central storage and collaboration space for documents, information, and ideas. A SharePoint site is a tool for collaboration, just like a telephone is a tool for communication, or a meeting is a tool for decision making. A SharePoint site helps groups of people (whether work teams or social groups) share information and work together. For example, a SharePoint site can help you:

Coordinate projects, calendars, and schedules.
Discuss ideas and review documents or proposals.
Share information and keep in touch with other people.

Six easy ways to customize your site using Web Parts in SharePoint

Becoming familiar with Web Part customization techniques gives you a range of page-customization choices. For example, you can customize your site's home page so that it displays the specific information that your team needs. You can rearrange the list items on the home page, add lists, and even change the images on the home page. As you become more familiar with Web Part Page customization techniques, you can build interactive Web Part Pages that makes the data in lists more dynamic and useful, and you can add new Web Parts that provide access to external data and Web services.

Working with SharePoint document libraries

Document libraries are collections of files that you can share with team members on a Web based on Microsoft Windows SharePoint Services. For example, you can create a library of common documents for a project, and team members can use their Web browsers to find the files, read them, and make comments. Users with Microsoft Office 2003 can check out and edit the files as if they resided on a local or network drive.

By default, your team Web site comes with a built-in document library named Shared Documents, which is listed on the Quick Launch bar as well as on the Documents and Lists page.

Out of the Depths of SharePoint's XML Hell

I described how a new open source tool called sporm significantly simplifies unit testing SharePoint. Making SharePoint unit testable is my absolute favorite feature of sporm because SharePoint is notoriously hard to unit test. But sporm provides other benefits as well and its ability to pull us out of the depths of verbose loosely typed XML hell and into LINQ excellence is next on my list of favorite features. So in this post I'll describe the pre-sporm technique of querying with CAML, how to query data using sporm, and finally how sporm supports SharePoint's unique architecture of allowing multiple content types per list and what that means to you.

Unit Testing SharePoint - Past, Present, and Sporm

As I described in SharePoint: The Wild West of Software Development there is a serious problem when you develop for SharePoint: ensuring quality through unit testing is really, really hard. And that's where a new open source tool just released today called sporm (SharePoint Object Relational Mapper) comes in. While sporm provides many benefits besides simplified unit testing I wanted to focus on this topic first, because sporm's approach, which models the entity framework in the way it supports POCO's, is a unique feature not available with other SharePoint tools like LINQ to SharePoint.

SharePoint Tutorial - Web Parts

A page in SharePoint is comprised of web parts the exist within zones. Web parts are available for just about everything. For example in the page below there are four web part highlighted by different colors. The purple web part displays a short list of the new announcements stored in the annoucements library. The pink web part displays events from a calendar within the site. The green web part displays an image from a location the user specifies. The gray web part displays a list of links from the links list on the site.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend