Upload
john-brown
View
216
Download
0
Tags:
Embed Size (px)
Citation preview
SharePoint Saturday
Lima 2015
Auspiciadores
Platinum
Prize Only
Agradecimiento especial
SharePoint 2013 Diagnostics
Vladimir Medina
Community Leader
@VladPoint
http://blogs.technet.com/b/vladpoint
https://www.facebook.com/groups/56850858767/
https://www.linkedin.com/groups?gid=1926509
Troubleshooting process
• Root source: always start with the logs
• Focus: one issue – one solution
• Tools: pick tools accordingly to the issue
SharePoint logs
• Troubleshooting using ULS logs• Get-SPDiagnosticConfig | Set-SPDiagnosticConfig –LogLocation –
DaysToKeepLogs –LogCutInterval –LogDiskSpaceUsageGB –LogMaxDiskSpaceUsageEnabled• Get-SPLogLevel | Set-SPLogLevel –eventseverity –traceseverity –identity• New-SPLogFile• Clear-SPLogLevel• Merge-SPLogFile –Path –Area –Category –Correlation –StartTime –EndTime
–EventID –Level –Message –ContextFilter –Process –ThreadID –Overwrite• Get-SPLogEvent –Directory –File –StartTime –EndTime –MinimumLevel -
ContextKey
Demo
SharePoint logging database
• Monitoring and trend analysis• Data stored: ULS logs, SQL queries information, Search service
statistics, Features usage, Page requests, Performance counters data, etc.• Dedicated resources are recommended• Direct queries, custom reports and views are supported• Technical details:
http://technet.microsoft.com/en-us/library/jj715694.aspx
SharePoint logging database
• New-SPUsageApplication –name –databaseserver –databasename• Get-SPUsageService• Set-SPUsageService –loggingenabled –usageloglocation• Get-SPUsageDefinition• Set-SPUsageDefinition –identity –enable –daysretained• Get-SPDiagnosticsProvider | Set-SPDiagnosticsProvider –enable –
daysretained• Get-SPDiagnosticsPerformanceCounter• Add/Remove-SPDiagnosticsPerformanceCounter –Category –Counter –
Instance –AllInstances –DatabaseServer -WebFrontEnd
Demo
Health Analyzer
• SharePoint Health Analyzer from Central Administration• NEW Site Collection Health Analyzer• Test-SPSite• Repair-SPSite
Developer Dashboard
• Disabled by default• Just can be enabled at farm level• Recommended use on testing or controlled environments• On and Off using PowerShell• $content =
([Microsoft.SharePoint.Administration.SPWebService]::ContentService)• $settings=$content.DeveloperDashboardSettings• $settings.DisplayLevel =
[Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::On/Off• $settings.Update()
Demo
Other Tools
• ULSViewer - http://ulsviewer.codeplex.com/ • LogParser - http://www.microsoft.com/en-us/download/details.aspx?id=24659 • Message Analyzer (Network Monitor) - http://
www.microsoft.com/en-us/download/details.aspx?id=44226 • Fiddler - http://www.telerik.com/download/fiddler • SPDiag - http://www.microsoft.com/en-us/download/details.aspx?id=20022 • DebugDiag - http://www.microsoft.com/en-us/download/details.aspx?id=26798 • Perfmon - http://technet.microsoft.com/en-us/library/cc749115.aspx • PAL - http://pal.codeplex.com/
Vladimir Medina
Community Leader
@VladPoint
http://blogs.technet.com/b/vladpoint
https://www.facebook.com/groups/56850858767/
https://www.linkedin.com/groups?gid=1926509