You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40-6Lines changed: 40 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -212,6 +212,7 @@ Possible values are:
212
212
- IO
213
213
- LightPerf
214
214
- ProcessMonitor
215
+
- NeverEndingQuery
215
216
- MenuChoice - this directs SQL LogScout to present an interactive menu with Scenario choices. The option is available in cases where multiple parameters are used with SQL_LogScout.cmd. Combining MenuChoice with another scenario choice, causes SQL LogScout to ignore MenuChoice and pick the selected scenario(s). For more information on what data each scenario collects, see [Scenarios](#scenarios)
216
217
- NoBasic - this instructs SQL LogScout to skip the collection of basic logs, when Basic scenario is part of another scenario by default. For example if you use GeneralPerf+NoBasic, only the performance logs will be collected and static logs (Basic) will be skipped. If NoBasic+Basic is specified by mistake, the assumption is you intend to collect data; therefore Basic is enabled and NoBasic flag is disabled. Similarly, if NoBasic+Basic+A_VALID_SCENARIO is selected, again the assumption is that data collection is intended. In this case, Basic is enabled, NoBasic is disabled and A_VALID_SCENARIO will collect Basic logs.
217
218
@@ -255,6 +256,9 @@ Possible values are:
255
256
- Quiet - suppresses possible prompts for data input. Selecting Quiet mode implicitly selects "Y" to all the screens that requires an agreement to proceed.
256
257
- Noisy - (default) shows prompts requesting user input where necessary
257
258
259
+
### DisableCtrlCasInput
260
+
Used for internal testing only and changes behavior of cancelling SQL LogScout. Do not use this parameter.
261
+
258
262
## Graphical User Interface (GUI)
259
263
260
264
The GUI is a feature added in version 5.0 of SQL LogScout. It allows the user to make many of the selections in a single user interface, if they prefer it over the menu options in command prompt. You can do the following in the GUI:
@@ -330,16 +334,20 @@ Collects snapshot or static logs. It captures information on:
330
334
- OS disk information
331
335
- Running filter drivers
332
336
- Event logs (system and application in both .CSV and .TXT formats)
337
+
- SQL Server dumps found in the errorlog directory. We collect up to 20 dumps if they were created in the last 2 months and are less than 100 MB in size.
338
+
- Memory dump .txt files (most recent 200 files)
333
339
- IPConfig, DNSClientInfo, and TCP and UDP endpoints
334
340
- SQL Errorlogs
335
341
- SQL Agent logs
342
+
- SystemHealth XELs
336
343
- Polybase logs
337
-
- Azure Arc Agent logs (if SQL Server enabled for Azure Arc)
344
+
- Azure Arc Agent logs (if SQL Server enabled for Azure Arc). More info available at [Azure Instance Metadata Service](https://learn.microsoft.com/en-us/azure/virtual-machines/instance-metadata-service?tabs=windows)
345
+
-[SQL Azure VM Information](https://learn.microsoft.com/azure/virtual-machines/instance-metadata-service?tabs=windows) (if SQL Server is Azure Virtual Machine)
338
346
- Performance Monitor counters for SQL Server instance and general OS counters - just a few snapshots for a few seconds.
- Always On [Data Movement Latency Xevent ](https://techcommunity.microsoft.com/t5/sql-server-support/troubleshooting-data-movement-latency-between-synchronous-commit/ba-p/319141) and the AG topology XML file required for [AG latency](https://learn.microsoft.com/archive/blogs/psssql/aglatency-report-tool-introduction) analysis.
381
389
- Core Xevents trace (RPC and Batch started and completed, login/logout, errors)
382
390
- Performance Monitor counters for SQL Server instance and general OS counters
@@ -448,6 +456,27 @@ Collects everything that the GeneralPerf scenario does (includes Basic scenario)
448
456
449
457
Collects a [Process Monitor](https://docs.microsoft.com/en-us/sysinternals/downloads/procmon) (Procmon) log to help with troubleshooting specific file or registry related issues. This collector requires that you have Procmon downloaded and unzipped in a folder of your choice. SQL LogScout will prompt you to provide the path to that folder. You don't need to wrap the path in quotes even if there are spaces in the path name.
450
458
459
+
## 14. Service Broker and Database mail
460
+
461
+
Collect logs to help troubleshoot SQL Service Broker and Database mail scenarios. The scenarion includes the following logs:
462
+
463
+
- Basic scenario
464
+
- Service Broker configuration information (SQL DMVs/system views)
465
+
- Performance Monitor counters for SQL Server instance and general OS counters
466
+
- Extended events (Xevents) for SQL Server Service Broker
467
+
468
+
## 15. Never Ending Query
469
+
470
+
Collect logs to help troubleshoot Never Ending Query scenarios. The scenario includes the following logs:
471
+
472
+
- Basic scenario
473
+
- Never Ending Query Perfstats (SQL DMVs/system views)
474
+
- Performance Monitor counters for SQL Server instance and general OS counters
475
+
- XML Plans for top 5 High CPU consuming queries
476
+
- XML Plans for all Never Ending queries
477
+
478
+
A never-ending query is considered a query that is driving CPU due to execution for a long time, and not one that is waiting for a long-time. This scenario will consider only queries that have consumed 60 seconds of more of CPU time. For more information, see [Troubleshoot queries that seem to never end in SQL Server](https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/performance/troubleshoot-never-ending-query)
479
+
451
480
# Output folders
452
481
453
482
**Output folder**: All the diagnostic log files are collected in the \output (or \output_ddMMyyhhmmss) folder. These include Perfmon log (.BLG), event logs, system information, extended event (.XEL), etc. By default this folder is created in the same location where SQL LogScout files reside (present directory). However a user can choose to collect data on a different disk volume and folder. This can be done by following the prompt for a non-default drive and directory or by using the CustomOutputPath parameter ([Parameters](#parameters))
@@ -504,6 +533,8 @@ Diagnostic data is collected from the SQL instance you selected locally on the m
504
533
505
534
# Security
506
535
536
+
## Digitally signed files and hash computed
537
+
507
538
SQL LogScout is released with digitally-signed Powershell files. For other files, SQL LogScout calculates a SHA512 hash and compares it to the expected value of each file. If the stored hash does not match the calculated hash on disk, then SQL LogScout will not run.
508
539
509
540
To manually validate script signature, you may execute the following:
SQL LogScout negotiates connection encryption with the SQL Server it collects data from. It does so by using "Encrypt=True;TrustServerCertificate=true;" and "sqlcmd -C -N" values.
585
+
551
586
# Sample output
552
587
553
588
```bash
@@ -642,10 +677,9 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved.
642
677
2021-09-10 11:04:21.313 INFO Executing Collector: HighCPU_perfstats
643
678
2021-09-10 11:04:21.364 INFO Executing Collector: SQLServerPerfStats
644
679
2021-09-10 11:04:23.441 INFO Executing Collector: SQLServerPerfStatsSnapshotStartup
645
-
2021-09-10 11:04:23.492 INFO Executing Collector: Query Store
680
+
2021-09-10 11:04:23.492 INFO Executing Collector: QueryStore
646
681
2021-09-10 11:04:25.552 INFO Executing Collector: TempDBAnalysis
647
682
2021-09-10 11:04:25.601 INFO Executing Collector: linked_server_config
648
-
2021-09-10 11:04:25.652 INFO Executing Collector: SSB_diag
649
683
2021-09-10 11:04:25.708 INFO Collecting logs for 'AlwaysOn' scenario
650
684
2021-09-10 11:04:25.740 INFO Executing Collector: AlwaysOnDiagScript
651
685
2021-09-10 11:04:25.788 INFO Executing Collector: Xevent_CoreAddSesion
@@ -678,7 +712,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved.
678
712
2021-09-10 11:04:47.407 INFO Executing Collector: FLTMC_Filters
679
713
2021-09-10 11:04:47.464 INFO Executing Collector: FLTMC_Instances
680
714
2021-09-10 11:04:47.533 INFO Executing Collector: SystemInfo_Summary
681
-
2021-09-10 11:04:47.618 INFO Executing Collector: MiscPssdiagInfo
715
+
2021-09-10 11:04:47.618 INFO Executing Collector: MiscDiagInfo
682
716
2021-09-10 11:04:47.681 INFO Executing Collector: SQLErrorLogs_AgentLogs_SystemHealth_MemDumps_FciXel
683
717
2021-09-10 11:04:50.501 INFO Executing Collector: PolybaseLogs
684
718
2021-09-10 11:04:50.533 INFO Executing Collector: SQLAssessmentAPI
0 commit comments