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

Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 

Recently uploaded (20)

Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 

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!