{"id":1545,"date":"2012-01-24T04:50:14","date_gmt":"2012-01-24T04:50:14","guid":{"rendered":"http:\/\/www.obieta.com\/?p=1545"},"modified":"2012-01-24T04:50:14","modified_gmt":"2012-01-24T04:50:14","slug":"sharepoint-uls-log-viewer","status":"publish","type":"post","link":"http:\/\/obieta.com\/?p=1545","title":{"rendered":"SharePoint ULS Log Viewer"},"content":{"rendered":"<p>My friend Dan Winter posted\u00a0<a title=\"2009 SharePoint Toolbox Review\" href=\"http:\/\/blogs.msdn.com\/dwinter\/archive\/2009\/12\/21\/2009-sharepoint-toolbox-review.aspx\">2009 SharePoint Toolbox Review<\/a> today on his blog. Within the post, the best tool I like is the\u00a0<a title=\"http:\/\/code.msdn.microsoft.com\/ULSViewer\" href=\"http:\/\/code.msdn.microsoft.com\/ULSViewer\">ULS Viewer<\/a>. If there\u2019s an election of SharePoint Administrator troubleshooting tools, I would vote it as the president!<\/p>\n<p>So what is ULS? It stands for Unified Logging Service. Mr. Winter explained that a lot in his blog so I would not repeat. But, it is the top one thing you should look at when you want to troubleshoot some SharePoint issue. Of course, troubleshooting is not always to get the symbols, debug and trace problems\u2026 If that is indeed needed, then it may be a bug.\u00a0 Most of the time, ULS log is already quite helpful. For example, sometimes I got a service error in the webpage, some errors in event log, but nothing told the exact root of the problem. Then when I looked into ULS log, it told me that the credential of the user did not work. It is really helpful.<\/p>\n<p>I did a user research earlier this year, more than 75% of SharePoint Administrators had no idea about ULS log. There\u2019re some reasons. Since the ULS log is designed mainly for product group and customer service usage, the default format is not very user friendly. The log is hard to read, and you may get overwhelming messages instead of the useful ones. Now, we have ULS Viewer to solve the problem.<\/p>\n<p>For SharePoint 2010, by default, ULS log is at<\/p>\n<p>C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14LOGS<\/p>\n<p>You can check the directory and try to read those logs. I was quite used to that, with notepad:)<\/p>\n<p>ULS Viewer can be used in different modes. The log can be read from log files, real time ULS log, or even clipboard. Here\u2019s some examples:<\/p>\n<p>On a machine running SharePoint 2010, run ULS Viewer. Click File, Open From, then choose ULS (This could also be done by simply press Ctrl+U). Immediately the logs will be shown in real-time. You can filter message level by click the icons in the middle. This can tell you what is going on inside SharePoint.<\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/blogfiles\/opal\/WindowsLiveWriter\/ULSViewerandWindowsPowerShell_2AB\/snap0204_2.png\"><img loading=\"lazy\" title=\"snap0204\" src=\"http:\/\/blogs.msdn.com\/blogfiles\/opal\/WindowsLiveWriter\/ULSViewerandWindowsPowerShell_2AB\/snap0204_thumb.png\" border=\"0\" alt=\"snap0204\" width=\"644\" height=\"452\" \/><\/a><\/p>\n<p>The best feature I love is the Toggle Correlation Tree button. In SharePoint 2010 we can use correlation id to trace a series of event inside SharePoint. For example, in this screenshot, my machine is trying to flush usage log. The different entries may be buried in the big ULS log file, but with correlation id you can easily track them \u2013 they shared the same id \u201cc000006c-5b56-412b-9de1-78aae06d121f\u201d.<\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/blogfiles\/opal\/WindowsLiveWriter\/ULSViewerandWindowsPowerShell_2AB\/snap0206_2.png\"><img loading=\"lazy\" title=\"snap0206\" src=\"http:\/\/blogs.msdn.com\/blogfiles\/opal\/WindowsLiveWriter\/ULSViewerandWindowsPowerShell_2AB\/snap0206_thumb.png\" border=\"0\" alt=\"snap0206\" width=\"644\" height=\"271\" \/><\/a><\/p>\n<p>Another good feature is the notifications. You can set notification level for ULS Viewer, by default it will pop up notification for Critical message. For example in this screenshot, when Health Analyzer checked my machine for a security rule, it wrote a critical message into the log. With ULS Viewer, you can quickly identify the location of the message. If there\u2019s an exception, you can also check the detail of that.<\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/blogfiles\/opal\/WindowsLiveWriter\/ULSViewerandWindowsPowerShell_2AB\/snap0208_2.png\"><img loading=\"lazy\" title=\"snap0208\" src=\"http:\/\/blogs.msdn.com\/blogfiles\/opal\/WindowsLiveWriter\/ULSViewerandWindowsPowerShell_2AB\/snap0208_thumb.png\" border=\"0\" alt=\"snap0208\" width=\"644\" height=\"208\" \/><\/a><\/p>\n<p>I\u2019m ready to throw my notepad away \u2013\u00a0<a title=\"http:\/\/code.msdn.microsoft.com\/ULSViewer\" href=\"http:\/\/code.msdn.microsoft.com\/ULSViewer\">ULS Viewer<\/a> is the one to go with, for troubleshooting.<\/p>\n<p>Source: <br \/><a href=\"http:\/\/blogs.msdn.com\/b\/opal\/archive\/2009\/12\/22\/uls-viewer-for-sharepoint-2010-troubleshooting.aspx\">http:\/\/blogs.msdn.com\/b\/opal\/archive\/2009\/12\/22\/uls-viewer-for-sharepoint-2010-troubleshooting.aspx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>My friend Dan Winter posted\u00a02009 SharePoint Toolbox Review today on his blog. Within the post, the best tool I like is the\u00a0ULS Viewer. If there\u2019s an election of SharePoint Administrator troubleshooting tools, I would vote it as the president! So what is ULS? It stands for Unified Logging Service. Mr. Winter explained that a lot [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,1],"tags":[],"_links":{"self":[{"href":"http:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/posts\/1545"}],"collection":[{"href":"http:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1545"}],"version-history":[{"count":0,"href":"http:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/posts\/1545\/revisions"}],"wp:attachment":[{"href":"http:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1545"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}