SlideShare a Scribd company logo
1 of 34
Download to read offline
SharePoint Logging & Debugging
 The Troubleshooter’s Best Friend

Cornelius J. van Dyk        Jason Himmelstein
 Crayveon Corporation              Sentri, Inc
    www.cjvandyk.com/blog      www.sharepointlonghorn.com
     c@sharepointmvp.net      jase@sharepointlonghorn.com
         @cjvandyk                 @sharepointlhorn
• SharePoint Practice Director, Sentri Inc.
• MCITP, MCTS SharePoint 2010
• Microsoft vTSP
   ●   virtual Technology Solutions Professional

• SharePoint Foundation Logger
  (http://spflogger.codeplex.com)
• Web: www.sentri.com
• Blog: www.sharepointlonghorn.com
• Twitter: @sharepointlhorn
• LinkedIn: www.linkedin.com/in/jasonhimmelstein
• Chief SharePoint Architect, Crayveon
• 7 time Microsoft MVP
• MCITP, MCTS SharePoint 2010
• SharePoint Foundation Logger
  (http://spflogger.codeplex.com)
• Blog: www.cjvandyk.com/blog
• Twitter: @cjvandyk
• LinkedIn: http://www.linkedin.com/in/cjvandyk
• How has SharePoint traditionally done logging
New Functionality in SharePoint 2010
• Size limitation
• Easy Granular tuning, with visibility into what’s tuned
• Ability to specify number of days to log
• I’m smart, why don’t I want to see everything?

• How does Flood Protection work?

• How do I turn it off and on?

 With this option enabled, if the same event fires 5 times
 within 2 minutes, SharePoint will suppress the event from
 logging and throw a summary event at the 2 minute mark.

 The default behavior and can be customized using
 PowerShell and the Set-SPDiagnosticConfig cmdlet.
•   How do I turn it off and on?
• Health Logging timer jobs are disabled by default




• How to enable:

      • Filter by Disabled and enable one by one
• The drivers behind Web Analytics

• True detail on who clicked what, and what they saw
Finding the root cause
Correlation IDs
• What is this weird 32 character message and why
  do I care?

• How are they used in SharePoint 2010?

• Why are they useful?
The Developer Dashboard
• How do I turn it on for a limited scope only?
• There’s some great info here for developers, but what does it
  tell me from an Operations/Support perspective?
• How can I convince my development team to code for it?
• SPMonitored Scope
   ●   Not available in Sandboxed Solutions
The Developer Dashboard (cont’d)
• Enabling the dashboard
   ●   3 modes
          • Off
          • On
          • OnDemand (recommended)
   ●   STSADM
          • stsadm -o setproperty -pn developer-dashboard -pv [off | on | ondemand]
   ●   PowerShell
   $j = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings;
   $j.DisplayLevel = 'OnDemand';
   $j.Update()
   Optional parameters
   $j.TraceEnabled = $true;
   $j.RequiredPermissions = '%MaskSetting%';
The Developer Dashboard (cont’d)
The Developer Dashboard (cont’d)
The Developer Dashboard (cont’d)
SPMonitoredScope
•   The SPMonitoredScope class resides in the Microsoft.SharePoint.Utilities
    namespace.
     ●   Example of wrapped code:


•   A tip for the best and most effective use of SPMonitoredScope:
     ●   All calls to external components, such as custom databases, external Web services, and so on,
         should be wrapped with SPMonitoredScope. This will make it easier for administrators to identify
         them as points of failure, and to isolate the problem quickly.
           •   Sandbox Solutions are not able to be wrapped in SPMonitoredScope

•   Measured statistics are written to the ULS logs as well as to the Developer
    Dashboard.
•   There are a few limitations for using SPMonitoredScope.
     ●   Only calls to SharePoint databases are captured.
     ●   Only the code wrapped with SPMonitoredScope that resides on the front-end Web server appears
         on the Developer Dashboard. Code that executes on application servers only displays the
         SPMonitoredScope information in the ULS logs of the computer that the code is running on.
•   Create custom monitors by adding ISPScopedPerformanceMonitor to the
    current SPMonitoredScope
 Configurable ULS Logs
 Flood Protection
 Developer Dashboard
DEMO

• Web Analytics
    • In Central Admin
       –   Administrative Report Library – Search Admin Reports
       –   Health Reports -Slowest Pages & Top Active Users
       –   Break down by Web Application
       –   Traffic, Search Inventory

• Configurable ULS Logs
One Database to rule them all:
The Logging database

•   What can it log?
•   How do I tell it to start logging?
•   How do I get the information out?
•   Are there tools out there to help me see the
    data more easily?
    ●   BDC models
    ●   SQL Views
    ●   CodePlex Projects
• Are there performance implications?
 SQL Views
 CodePlex Projects
   http://SPFLogger.codeplex.com
NTEventLog in SPFLogger
NTEvent Analytics in SPFLogger
ULSTraceView in SPFLogger
TimerJob Log in SPFLogger
TimerJob Analytics in SPFLogger
Handy Reference Information
•   Useful Stuff
           •   Jason’s info
                 http://www.sharepointlonghorn.com
                 jase@sharepointlonghorn.com
                 @sharepointlhorn
           •   Corne’s info
                 http://www.cjvandyk.com/blog
                 c@crayveon.com
                 @cjvandyk
           •   Todd Carter’s info
                 @toddca
                 http://www.todd-carter.com/
           •   Russ Maxwell’s Blog
                 http://blogs.msdn.com/b/russmax



•   Microsoft References
     ●   SPMonitoredScope Class
          http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.utilities.spmonitoredscope(office.14).aspx
     ●   Using SPMonitoredScope Class
          http://msdn.microsoft.com/en-us/library/ff512758.aspx

•   Download links
          http://spflogger.codeplex.com
          Microsoft SharePoint 2010 Administration Toolkit v2.0
Thanks to our giveaway sponsor & Sentri
                Partner!
Your Feedback is Important

 Please fill out a session evaluation form
  drop it off at the conference registration
                      desk.

                Thank you!

More Related Content

Similar to Himmelstein SP Connections HAD207 SharePoint Logging & Debugging

[Pinto] Is my SharePoint Development team properly enlighted?
[Pinto] Is my SharePoint Development team properly enlighted?[Pinto] Is my SharePoint Development team properly enlighted?
[Pinto] Is my SharePoint Development team properly enlighted?European Collaboration Summit
 
SCUG.DK: Visualizing Your Data, April 2015
SCUG.DK: Visualizing Your Data, April 2015SCUG.DK: Visualizing Your Data, April 2015
SCUG.DK: Visualizing Your Data, April 2015Ronni Pedersen
 
Nsc 2013 06-17 - random rants on 2013
Nsc 2013 06-17 - random rants on 2013Nsc 2013 06-17 - random rants on 2013
Nsc 2013 06-17 - random rants on 2013Mikael Svenson
 
Himmelstein SP Connections Session HAD308 Heavy Metal Power Pivot
Himmelstein SP Connections Session HAD308 Heavy Metal Power PivotHimmelstein SP Connections Session HAD308 Heavy Metal Power Pivot
Himmelstein SP Connections Session HAD308 Heavy Metal Power PivotSentri
 
Building enterprise platforms - off the beaten path - SharePoint User Group U...
Building enterprise platforms - off the beaten path - SharePoint User Group U...Building enterprise platforms - off the beaten path - SharePoint User Group U...
Building enterprise platforms - off the beaten path - SharePoint User Group U...Andy Talbot
 
Building SharePoint Enterprise Platforms - Off the beaten path
Building SharePoint Enterprise Platforms - Off the beaten pathBuilding SharePoint Enterprise Platforms - Off the beaten path
Building SharePoint Enterprise Platforms - Off the beaten pathAndy Talbot
 
Build your SharePoint Internet Presence with PowerShell
Build your SharePoint Internet Presence with PowerShellBuild your SharePoint Internet Presence with PowerShell
Build your SharePoint Internet Presence with PowerShellRyan Dennis
 
淺談 Startup 公司的軟體開發流程 v2
淺談 Startup 公司的軟體開發流程 v2淺談 Startup 公司的軟體開發流程 v2
淺談 Startup 公司的軟體開發流程 v2Wen-Tien Chang
 
Agile startup company management and operation
Agile startup company management and operationAgile startup company management and operation
Agile startup company management and operationJiang Zhu
 
Governance is Not An Option
Governance is Not An OptionGovernance is Not An Option
Governance is Not An Optionspsnyc
 
SharePoint Fest DC 2016_Advanced Office365 SharePoint Online Workflows
SharePoint Fest DC 2016_Advanced Office365 SharePoint Online WorkflowsSharePoint Fest DC 2016_Advanced Office365 SharePoint Online Workflows
SharePoint Fest DC 2016_Advanced Office365 SharePoint Online WorkflowsPrashant G Bhoyar (Microsoft MVP)
 
WF 105 Business Process Automation SharePoint Fest DC 2018
WF 105 Business Process Automation SharePoint Fest DC 2018WF 105 Business Process Automation SharePoint Fest DC 2018
WF 105 Business Process Automation SharePoint Fest DC 2018William Huneycutt, II
 
Practical Tips for Migrating SharePoint Customizations to Office 365
Practical Tips for Migrating SharePoint Customizations to Office 365Practical Tips for Migrating SharePoint Customizations to Office 365
Practical Tips for Migrating SharePoint Customizations to Office 365Haniel Croitoru
 
Optimus XPages: An Explosion of Techniques and Best Practices
Optimus XPages: An Explosion of Techniques and Best PracticesOptimus XPages: An Explosion of Techniques and Best Practices
Optimus XPages: An Explosion of Techniques and Best PracticesTeamstudio
 
Introducing Sitecore - The Experience Platform
Introducing Sitecore - The Experience PlatformIntroducing Sitecore - The Experience Platform
Introducing Sitecore - The Experience PlatformAdrian IORGU
 
SPSNYC2019 - What is Common Data Model and how to use it?
SPSNYC2019 - What is Common Data Model and how to use it?SPSNYC2019 - What is Common Data Model and how to use it?
SPSNYC2019 - What is Common Data Model and how to use it?Nicolas Georgeault
 
Lifecycle Management with SharePoint Apps and Solutions
Lifecycle Management with SharePoint Apps and SolutionsLifecycle Management with SharePoint Apps and Solutions
Lifecycle Management with SharePoint Apps and SolutionsSPC Adriatics
 

Similar to Himmelstein SP Connections HAD207 SharePoint Logging & Debugging (20)

SharePoint Custom Development
SharePoint Custom DevelopmentSharePoint Custom Development
SharePoint Custom Development
 
[Pinto] Is my SharePoint Development team properly enlighted?
[Pinto] Is my SharePoint Development team properly enlighted?[Pinto] Is my SharePoint Development team properly enlighted?
[Pinto] Is my SharePoint Development team properly enlighted?
 
SCUG.DK: Visualizing Your Data, April 2015
SCUG.DK: Visualizing Your Data, April 2015SCUG.DK: Visualizing Your Data, April 2015
SCUG.DK: Visualizing Your Data, April 2015
 
Nsc 2013 06-17 - random rants on 2013
Nsc 2013 06-17 - random rants on 2013Nsc 2013 06-17 - random rants on 2013
Nsc 2013 06-17 - random rants on 2013
 
Himmelstein SP Connections Session HAD308 Heavy Metal Power Pivot
Himmelstein SP Connections Session HAD308 Heavy Metal Power PivotHimmelstein SP Connections Session HAD308 Heavy Metal Power Pivot
Himmelstein SP Connections Session HAD308 Heavy Metal Power Pivot
 
Building enterprise platforms - off the beaten path - SharePoint User Group U...
Building enterprise platforms - off the beaten path - SharePoint User Group U...Building enterprise platforms - off the beaten path - SharePoint User Group U...
Building enterprise platforms - off the beaten path - SharePoint User Group U...
 
Building SharePoint Enterprise Platforms - Off the beaten path
Building SharePoint Enterprise Platforms - Off the beaten pathBuilding SharePoint Enterprise Platforms - Off the beaten path
Building SharePoint Enterprise Platforms - Off the beaten path
 
Build your SharePoint Internet Presence with PowerShell
Build your SharePoint Internet Presence with PowerShellBuild your SharePoint Internet Presence with PowerShell
Build your SharePoint Internet Presence with PowerShell
 
淺談 Startup 公司的軟體開發流程 v2
淺談 Startup 公司的軟體開發流程 v2淺談 Startup 公司的軟體開發流程 v2
淺談 Startup 公司的軟體開發流程 v2
 
Agile startup company management and operation
Agile startup company management and operationAgile startup company management and operation
Agile startup company management and operation
 
Governance is Not An Option
Governance is Not An OptionGovernance is Not An Option
Governance is Not An Option
 
SharePoint Fest DC 2016_Advanced Office365 SharePoint Online Workflows
SharePoint Fest DC 2016_Advanced Office365 SharePoint Online WorkflowsSharePoint Fest DC 2016_Advanced Office365 SharePoint Online Workflows
SharePoint Fest DC 2016_Advanced Office365 SharePoint Online Workflows
 
Getting started with SharePoint 2013 Workflows
Getting started with SharePoint 2013 WorkflowsGetting started with SharePoint 2013 Workflows
Getting started with SharePoint 2013 Workflows
 
WF 105 Business Process Automation SharePoint Fest DC 2018
WF 105 Business Process Automation SharePoint Fest DC 2018WF 105 Business Process Automation SharePoint Fest DC 2018
WF 105 Business Process Automation SharePoint Fest DC 2018
 
Practical Tips for Migrating SharePoint Customizations to Office 365
Practical Tips for Migrating SharePoint Customizations to Office 365Practical Tips for Migrating SharePoint Customizations to Office 365
Practical Tips for Migrating SharePoint Customizations to Office 365
 
Optimus XPages: An Explosion of Techniques and Best Practices
Optimus XPages: An Explosion of Techniques and Best PracticesOptimus XPages: An Explosion of Techniques and Best Practices
Optimus XPages: An Explosion of Techniques and Best Practices
 
Spring insight what just happened
Spring insight   what just happenedSpring insight   what just happened
Spring insight what just happened
 
Introducing Sitecore - The Experience Platform
Introducing Sitecore - The Experience PlatformIntroducing Sitecore - The Experience Platform
Introducing Sitecore - The Experience Platform
 
SPSNYC2019 - What is Common Data Model and how to use it?
SPSNYC2019 - What is Common Data Model and how to use it?SPSNYC2019 - What is Common Data Model and how to use it?
SPSNYC2019 - What is Common Data Model and how to use it?
 
Lifecycle Management with SharePoint Apps and Solutions
Lifecycle Management with SharePoint Apps and SolutionsLifecycle Management with SharePoint Apps and Solutions
Lifecycle Management with SharePoint Apps and Solutions
 

More from Sentri

Uncover the Benefits of Office 365 & Windows Azure
Uncover the Benefits of Office 365 & Windows AzureUncover the Benefits of Office 365 & Windows Azure
Uncover the Benefits of Office 365 & Windows AzureSentri
 
Discover SharePoint 2013 & Dynamics CRM
Discover SharePoint 2013 & Dynamics CRMDiscover SharePoint 2013 & Dynamics CRM
Discover SharePoint 2013 & Dynamics CRMSentri
 
Explore Microsoft Lync & Exchange 2013 Webinar
Explore Microsoft Lync & Exchange 2013  WebinarExplore Microsoft Lync & Exchange 2013  Webinar
Explore Microsoft Lync & Exchange 2013 WebinarSentri
 
Relationship Management for Property Investment Management webinar 2.5.13
Relationship Management for Property Investment Management webinar 2.5.13Relationship Management for Property Investment Management webinar 2.5.13
Relationship Management for Property Investment Management webinar 2.5.13Sentri
 
SharePoint 2013 Communities Overview for SPS Philly
SharePoint 2013 Communities Overview for SPS PhillySharePoint 2013 Communities Overview for SPS Philly
SharePoint 2013 Communities Overview for SPS PhillySentri
 
Move Storage to the Cloud with Windows Azure webinar 2.21.2013
Move Storage to the Cloud with Windows Azure webinar 2.21.2013Move Storage to the Cloud with Windows Azure webinar 2.21.2013
Move Storage to the Cloud with Windows Azure webinar 2.21.2013Sentri
 
SharePoint 2013 Extranets webinar
SharePoint 2013 Extranets webinarSharePoint 2013 Extranets webinar
SharePoint 2013 Extranets webinarSentri
 
Lync Intro Exchange User Group New York 2_12_2013
Lync Intro Exchange User Group New York 2_12_2013Lync Intro Exchange User Group New York 2_12_2013
Lync Intro Exchange User Group New York 2_12_2013Sentri
 
Lync IM and Presence Sentri webinar 2.7.13
Lync IM and Presence Sentri webinar 2.7.13 Lync IM and Presence Sentri webinar 2.7.13
Lync IM and Presence Sentri webinar 2.7.13 Sentri
 
WEBINAR: Uncover the Benefits of Office 365 and Windows Azure
WEBINAR: Uncover the Benefits of Office 365 and Windows Azure WEBINAR: Uncover the Benefits of Office 365 and Windows Azure
WEBINAR: Uncover the Benefits of Office 365 and Windows Azure Sentri
 
SharePoint 2013 Unveiled webinar 1.24.13
SharePoint 2013 Unveiled webinar 1.24.13SharePoint 2013 Unveiled webinar 1.24.13
SharePoint 2013 Unveiled webinar 1.24.13Sentri
 
Webinar: Understanding the System Center suite & Windows Server 2012
Webinar: Understanding the System Center suite & Windows Server 2012 Webinar: Understanding the System Center suite & Windows Server 2012
Webinar: Understanding the System Center suite & Windows Server 2012 Sentri
 
Sentri Webinar: Microsoft Lync Exchange 2013
Sentri Webinar: Microsoft Lync Exchange 2013Sentri Webinar: Microsoft Lync Exchange 2013
Sentri Webinar: Microsoft Lync Exchange 2013Sentri
 
Windows Azure overview webinar by Sentri
Windows Azure overview webinar by SentriWindows Azure overview webinar by Sentri
Windows Azure overview webinar by SentriSentri
 
SystemCenter webinar 12 6 12
SystemCenter webinar 12 6 12SystemCenter webinar 12 6 12
SystemCenter webinar 12 6 12Sentri
 
Exchange 2013 webinar
Exchange 2013 webinarExchange 2013 webinar
Exchange 2013 webinarSentri
 
Share point 2013 webinar november 2012
Share point 2013 webinar november 2012Share point 2013 webinar november 2012
Share point 2013 webinar november 2012Sentri
 
Empowering Collaboration through Self-Service BI
Empowering Collaboration through Self-Service BIEmpowering Collaboration through Self-Service BI
Empowering Collaboration through Self-Service BISentri
 
Empowering Collaboration through Self-Service BI
Empowering Collaboration through Self-Service BIEmpowering Collaboration through Self-Service BI
Empowering Collaboration through Self-Service BISentri
 
Exchange 2013
Exchange 2013Exchange 2013
Exchange 2013Sentri
 

More from Sentri (20)

Uncover the Benefits of Office 365 & Windows Azure
Uncover the Benefits of Office 365 & Windows AzureUncover the Benefits of Office 365 & Windows Azure
Uncover the Benefits of Office 365 & Windows Azure
 
Discover SharePoint 2013 & Dynamics CRM
Discover SharePoint 2013 & Dynamics CRMDiscover SharePoint 2013 & Dynamics CRM
Discover SharePoint 2013 & Dynamics CRM
 
Explore Microsoft Lync & Exchange 2013 Webinar
Explore Microsoft Lync & Exchange 2013  WebinarExplore Microsoft Lync & Exchange 2013  Webinar
Explore Microsoft Lync & Exchange 2013 Webinar
 
Relationship Management for Property Investment Management webinar 2.5.13
Relationship Management for Property Investment Management webinar 2.5.13Relationship Management for Property Investment Management webinar 2.5.13
Relationship Management for Property Investment Management webinar 2.5.13
 
SharePoint 2013 Communities Overview for SPS Philly
SharePoint 2013 Communities Overview for SPS PhillySharePoint 2013 Communities Overview for SPS Philly
SharePoint 2013 Communities Overview for SPS Philly
 
Move Storage to the Cloud with Windows Azure webinar 2.21.2013
Move Storage to the Cloud with Windows Azure webinar 2.21.2013Move Storage to the Cloud with Windows Azure webinar 2.21.2013
Move Storage to the Cloud with Windows Azure webinar 2.21.2013
 
SharePoint 2013 Extranets webinar
SharePoint 2013 Extranets webinarSharePoint 2013 Extranets webinar
SharePoint 2013 Extranets webinar
 
Lync Intro Exchange User Group New York 2_12_2013
Lync Intro Exchange User Group New York 2_12_2013Lync Intro Exchange User Group New York 2_12_2013
Lync Intro Exchange User Group New York 2_12_2013
 
Lync IM and Presence Sentri webinar 2.7.13
Lync IM and Presence Sentri webinar 2.7.13 Lync IM and Presence Sentri webinar 2.7.13
Lync IM and Presence Sentri webinar 2.7.13
 
WEBINAR: Uncover the Benefits of Office 365 and Windows Azure
WEBINAR: Uncover the Benefits of Office 365 and Windows Azure WEBINAR: Uncover the Benefits of Office 365 and Windows Azure
WEBINAR: Uncover the Benefits of Office 365 and Windows Azure
 
SharePoint 2013 Unveiled webinar 1.24.13
SharePoint 2013 Unveiled webinar 1.24.13SharePoint 2013 Unveiled webinar 1.24.13
SharePoint 2013 Unveiled webinar 1.24.13
 
Webinar: Understanding the System Center suite & Windows Server 2012
Webinar: Understanding the System Center suite & Windows Server 2012 Webinar: Understanding the System Center suite & Windows Server 2012
Webinar: Understanding the System Center suite & Windows Server 2012
 
Sentri Webinar: Microsoft Lync Exchange 2013
Sentri Webinar: Microsoft Lync Exchange 2013Sentri Webinar: Microsoft Lync Exchange 2013
Sentri Webinar: Microsoft Lync Exchange 2013
 
Windows Azure overview webinar by Sentri
Windows Azure overview webinar by SentriWindows Azure overview webinar by Sentri
Windows Azure overview webinar by Sentri
 
SystemCenter webinar 12 6 12
SystemCenter webinar 12 6 12SystemCenter webinar 12 6 12
SystemCenter webinar 12 6 12
 
Exchange 2013 webinar
Exchange 2013 webinarExchange 2013 webinar
Exchange 2013 webinar
 
Share point 2013 webinar november 2012
Share point 2013 webinar november 2012Share point 2013 webinar november 2012
Share point 2013 webinar november 2012
 
Empowering Collaboration through Self-Service BI
Empowering Collaboration through Self-Service BIEmpowering Collaboration through Self-Service BI
Empowering Collaboration through Self-Service BI
 
Empowering Collaboration through Self-Service BI
Empowering Collaboration through Self-Service BIEmpowering Collaboration through Self-Service BI
Empowering Collaboration through Self-Service BI
 
Exchange 2013
Exchange 2013Exchange 2013
Exchange 2013
 

Recently uploaded

Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 

Recently uploaded (20)

Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 

Himmelstein SP Connections HAD207 SharePoint Logging & Debugging

  • 1. SharePoint Logging & Debugging The Troubleshooter’s Best Friend Cornelius J. van Dyk Jason Himmelstein Crayveon Corporation Sentri, Inc www.cjvandyk.com/blog www.sharepointlonghorn.com c@sharepointmvp.net jase@sharepointlonghorn.com @cjvandyk @sharepointlhorn
  • 2. • SharePoint Practice Director, Sentri Inc. • MCITP, MCTS SharePoint 2010 • Microsoft vTSP ● virtual Technology Solutions Professional • SharePoint Foundation Logger (http://spflogger.codeplex.com) • Web: www.sentri.com • Blog: www.sharepointlonghorn.com • Twitter: @sharepointlhorn • LinkedIn: www.linkedin.com/in/jasonhimmelstein
  • 3. • Chief SharePoint Architect, Crayveon • 7 time Microsoft MVP • MCITP, MCTS SharePoint 2010 • SharePoint Foundation Logger (http://spflogger.codeplex.com) • Blog: www.cjvandyk.com/blog • Twitter: @cjvandyk • LinkedIn: http://www.linkedin.com/in/cjvandyk
  • 4.
  • 5.
  • 6. • How has SharePoint traditionally done logging
  • 7. New Functionality in SharePoint 2010
  • 8.
  • 9. • Size limitation • Easy Granular tuning, with visibility into what’s tuned • Ability to specify number of days to log
  • 10. • I’m smart, why don’t I want to see everything? • How does Flood Protection work? • How do I turn it off and on? With this option enabled, if the same event fires 5 times within 2 minutes, SharePoint will suppress the event from logging and throw a summary event at the 2 minute mark. The default behavior and can be customized using PowerShell and the Set-SPDiagnosticConfig cmdlet.
  • 11.
  • 12. How do I turn it off and on?
  • 13. • Health Logging timer jobs are disabled by default • How to enable: • Filter by Disabled and enable one by one
  • 14. • The drivers behind Web Analytics • True detail on who clicked what, and what they saw
  • 16. Correlation IDs • What is this weird 32 character message and why do I care? • How are they used in SharePoint 2010? • Why are they useful?
  • 17. The Developer Dashboard • How do I turn it on for a limited scope only? • There’s some great info here for developers, but what does it tell me from an Operations/Support perspective? • How can I convince my development team to code for it? • SPMonitored Scope ● Not available in Sandboxed Solutions
  • 18. The Developer Dashboard (cont’d) • Enabling the dashboard ● 3 modes • Off • On • OnDemand (recommended) ● STSADM • stsadm -o setproperty -pn developer-dashboard -pv [off | on | ondemand] ● PowerShell $j = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings; $j.DisplayLevel = 'OnDemand'; $j.Update() Optional parameters $j.TraceEnabled = $true; $j.RequiredPermissions = '%MaskSetting%';
  • 22. SPMonitoredScope • The SPMonitoredScope class resides in the Microsoft.SharePoint.Utilities namespace. ● Example of wrapped code: • A tip for the best and most effective use of SPMonitoredScope: ● All calls to external components, such as custom databases, external Web services, and so on, should be wrapped with SPMonitoredScope. This will make it easier for administrators to identify them as points of failure, and to isolate the problem quickly. • Sandbox Solutions are not able to be wrapped in SPMonitoredScope • Measured statistics are written to the ULS logs as well as to the Developer Dashboard. • There are a few limitations for using SPMonitoredScope. ● Only calls to SharePoint databases are captured. ● Only the code wrapped with SPMonitoredScope that resides on the front-end Web server appears on the Developer Dashboard. Code that executes on application servers only displays the SPMonitoredScope information in the ULS logs of the computer that the code is running on. • Create custom monitors by adding ISPScopedPerformanceMonitor to the current SPMonitoredScope
  • 23.  Configurable ULS Logs  Flood Protection  Developer Dashboard
  • 24. DEMO • Web Analytics • In Central Admin – Administrative Report Library – Search Admin Reports – Health Reports -Slowest Pages & Top Active Users – Break down by Web Application – Traffic, Search Inventory • Configurable ULS Logs
  • 25. One Database to rule them all: The Logging database • What can it log? • How do I tell it to start logging? • How do I get the information out? • Are there tools out there to help me see the data more easily? ● BDC models ● SQL Views ● CodePlex Projects • Are there performance implications?
  • 26.  SQL Views  CodePlex Projects  http://SPFLogger.codeplex.com
  • 28. NTEvent Analytics in SPFLogger
  • 30. TimerJob Log in SPFLogger
  • 32. Handy Reference Information • Useful Stuff • Jason’s info http://www.sharepointlonghorn.com jase@sharepointlonghorn.com @sharepointlhorn • Corne’s info http://www.cjvandyk.com/blog c@crayveon.com @cjvandyk • Todd Carter’s info @toddca http://www.todd-carter.com/ • Russ Maxwell’s Blog http://blogs.msdn.com/b/russmax • Microsoft References ● SPMonitoredScope Class http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.utilities.spmonitoredscope(office.14).aspx ● Using SPMonitoredScope Class http://msdn.microsoft.com/en-us/library/ff512758.aspx • Download links http://spflogger.codeplex.com Microsoft SharePoint 2010 Administration Toolkit v2.0
  • 33. Thanks to our giveaway sponsor & Sentri Partner!
  • 34. Your Feedback is Important Please fill out a session evaluation form drop it off at the conference registration desk. Thank you!