Skip to content

Commit ac483ee

Browse files
authored
Merge pull request #15 from microsoft/v6.24.02.18
Release version v6.24.02.18
2 parents 74af3ed + 778f4be commit ac483ee

45 files changed

Lines changed: 10091 additions & 5086 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ x86/
2626
[Aa][Rr][Mm]/
2727
[Aa][Rr][Mm]64/
2828
bld/
29-
[Bb]in/
3029
[Oo]bj/
3130
[Ll]og/
3231
[Ll]ogs/

README.md

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ Possible values are:
212212
- IO
213213
- LightPerf
214214
- ProcessMonitor
215+
- NeverEndingQuery
215216
- 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)
216217
- 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.
217218

@@ -255,6 +256,9 @@ Possible values are:
255256
- Quiet - suppresses possible prompts for data input. Selecting Quiet mode implicitly selects "Y" to all the screens that requires an agreement to proceed.
256257
- Noisy - (default) shows prompts requesting user input where necessary
257258

259+
### DisableCtrlCasInput
260+
Used for internal testing only and changes behavior of cancelling SQL LogScout. Do not use this parameter.
261+
258262
## Graphical User Interface (GUI)
259263

260264
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:
330334
- OS disk information
331335
- Running filter drivers
332336
- 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)
333339
- IPConfig, DNSClientInfo, and TCP and UDP endpoints
334340
- SQL Errorlogs
335341
- SQL Agent logs
342+
- SystemHealth XELs
336343
- 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)
338346
- Performance Monitor counters for SQL Server instance and general OS counters - just a few snapshots for a few seconds.
339-
- [AlwaysOn_health.xel](https://docs.microsoft.com/sql/database-engine/availability-groups/windows/always-on-extended-events#bkmk_alwayson_health)
340347
- [MSSQLSERVER_SQLDIAG.xel](https://docs.microsoft.com/sql/database-engine/availability-groups/windows/always-on-health-diagnostics-log)
341348
- [SQL VSS Writer Log (SQL Server 2019 and later)](https://docs.microsoft.com/sql/relational-databases/backup-restore/sql-server-vss-writer-logging)
342349
- [SQL Assessment API](https://docs.microsoft.com/sql/tools/sql-assessment-api/sql-assessment-api-overview) log
350+
- Environment variables full list
343351

344352
## 1. GeneralPerf scenario
345353

@@ -353,7 +361,6 @@ Collects all the Basic scenario logs as well as some long-term, continuous logs
353361
- Query Data Store (QDS) info (if that is active)
354362
- Tempdb contention info from SQL DMVs/system views
355363
- Linked Server metadata (SQL DMVs/system views)
356-
- Service Broker configuration information (SQL DMVs/system views)
357364

358365
*Note:* If you combine GeneralPerf with DetailedPerf scenario, then the GeneralPerf will be disabled and only DetailedPerf will be collected.
359366

@@ -377,6 +384,7 @@ Collects all the Basic scenario logs as well as Always On configuration informat
377384

378385
- Basic scenario
379386
- Always On diagnostic info (SQL DMVs/system views)
387+
- [AlwaysOn_health.xel](https://docs.microsoft.com/sql/database-engine/availability-groups/windows/always-on-extended-events#bkmk_alwayson_health)
380388
- 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.
381389
- Core Xevents trace (RPC and Batch started and completed, login/logout, errors)
382390
- 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)
448456

449457
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.
450458

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+
451480
# Output folders
452481

453482
**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
504533

505534
# Security
506535

536+
## Digitally signed files and hash computed
537+
507538
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.
508539

509540
To manually validate script signature, you may execute the following:
@@ -548,6 +579,10 @@ SignerCertificate : [Subject]
548579
ABDCA79AF9DD48A0EA702AD45260B3C03093FB4B
549580
```
550581

582+
## Encrypted connection to SQL Server
583+
584+
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+
551586
# Sample output
552587

553588
```bash
@@ -642,10 +677,9 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved.
642677
2021-09-10 11:04:21.313 INFO Executing Collector: HighCPU_perfstats
643678
2021-09-10 11:04:21.364 INFO Executing Collector: SQLServerPerfStats
644679
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
646681
2021-09-10 11:04:25.552 INFO Executing Collector: TempDBAnalysis
647682
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
649683
2021-09-10 11:04:25.708 INFO Collecting logs for 'AlwaysOn' scenario
650684
2021-09-10 11:04:25.740 INFO Executing Collector: AlwaysOnDiagScript
651685
2021-09-10 11:04:25.788 INFO Executing Collector: Xevent_CoreAddSesion
@@ -678,7 +712,7 @@ Copyright (c) 2021 Microsoft Corporation. All rights reserved.
678712
2021-09-10 11:04:47.407 INFO Executing Collector: FLTMC_Filters
679713
2021-09-10 11:04:47.464 INFO Executing Collector: FLTMC_Instances
680714
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
682716
2021-09-10 11:04:47.681 INFO Executing Collector: SQLErrorLogs_AgentLogs_SystemHealth_MemDumps_FciXel
683717
2021-09-10 11:04:50.501 INFO Executing Collector: PolybaseLogs
684718
2021-09-10 11:04:50.533 INFO Executing Collector: SQLAssessmentAPI

0 commit comments

Comments
 (0)