From 50556a47de527873e635103c9c6be73a198e249b Mon Sep 17 00:00:00 2001 From: David Paulson Date: Thu, 19 Sep 2024 14:50:30 -0500 Subject: [PATCH] Add Conversation Logs to ELC --- Diagnostics/ExchangeLogCollector/ExchangeLogCollector.ps1 | 1 + .../ExchangeLogCollector/Helpers/Get-ArgumentList.ps1 | 1 + .../ExchangeLogCollector/Helpers/Test-NoSwitchesProvided.ps1 | 1 + .../Helpers/Test-PossibleCommonScenarios.ps1 | 1 + .../RemoteScriptBlock/Invoke-RemoteMain.ps1 | 5 +++++ docs/Diagnostics/ExchangeLogCollector.md | 1 + 6 files changed, 10 insertions(+) diff --git a/Diagnostics/ExchangeLogCollector/ExchangeLogCollector.ps1 b/Diagnostics/ExchangeLogCollector/ExchangeLogCollector.ps1 index 787d37fb3..354015813 100644 --- a/Diagnostics/ExchangeLogCollector/ExchangeLogCollector.ps1 +++ b/Diagnostics/ExchangeLogCollector/ExchangeLogCollector.ps1 @@ -14,6 +14,7 @@ param ( [bool]$AppSysLogsToXml = $true, [switch]$AutoDLogs, [switch]$CollectFailoverMetrics, + [switch]$ConversationLogs, [switch]$DAGInformation, [switch]$DailyPerformanceLogs, [switch]$EASLogs, diff --git a/Diagnostics/ExchangeLogCollector/Helpers/Get-ArgumentList.ps1 b/Diagnostics/ExchangeLogCollector/Helpers/Get-ArgumentList.ps1 index 39870f2a0..db99f9b53 100644 --- a/Diagnostics/ExchangeLogCollector/Helpers/Get-ArgumentList.ps1 +++ b/Diagnostics/ExchangeLogCollector/Helpers/Get-ArgumentList.ps1 @@ -31,6 +31,7 @@ function Get-ArgumentList { AppSysLogsToXml = $AppSysLogsToXml AutoDLogs = $AutoDLogs CollectAllLogsBasedOnLogAge = $CollectAllLogsBasedOnLogAge + ConversationLogs = $ConversationLogs DAGInformation = $DAGInformation DailyPerformanceLogs = $DailyPerformanceLogs TransportLogging = $TransportLogging diff --git a/Diagnostics/ExchangeLogCollector/Helpers/Test-NoSwitchesProvided.ps1 b/Diagnostics/ExchangeLogCollector/Helpers/Test-NoSwitchesProvided.ps1 index 4d59c9e58..30cab4d71 100644 --- a/Diagnostics/ExchangeLogCollector/Helpers/Test-NoSwitchesProvided.ps1 +++ b/Diagnostics/ExchangeLogCollector/Helpers/Test-NoSwitchesProvided.ps1 @@ -7,6 +7,7 @@ function Test-NoSwitchesProvided { $IISLogs -or $DailyPerformanceLogs -or $ManagedAvailabilityLogs -or + $ConversationLogs -or $EventBasedAssistantsLogs -or $ExPerfWiz -or $RPCLogs -or diff --git a/Diagnostics/ExchangeLogCollector/Helpers/Test-PossibleCommonScenarios.ps1 b/Diagnostics/ExchangeLogCollector/Helpers/Test-PossibleCommonScenarios.ps1 index e01fc8377..556712386 100644 --- a/Diagnostics/ExchangeLogCollector/Helpers/Test-PossibleCommonScenarios.ps1 +++ b/Diagnostics/ExchangeLogCollector/Helpers/Test-PossibleCommonScenarios.ps1 @@ -36,6 +36,7 @@ function Test-PossibleCommonScenarios { $Script:MitigationService = $true $Script:MailboxAssistantsLogs = $true $Script:EventBasedAssistantsLogs = $true + $Script:ConversationLogs = $true } if ($TransportLogging) { diff --git a/Diagnostics/ExchangeLogCollector/RemoteScriptBlock/Invoke-RemoteMain.ps1 b/Diagnostics/ExchangeLogCollector/RemoteScriptBlock/Invoke-RemoteMain.ps1 index db56a03a5..e7b5d9efd 100644 --- a/Diagnostics/ExchangeLogCollector/RemoteScriptBlock/Invoke-RemoteMain.ps1 +++ b/Diagnostics/ExchangeLogCollector/RemoteScriptBlock/Invoke-RemoteMain.ps1 @@ -209,6 +209,11 @@ function Invoke-RemoteMain { Add-LogCopyFullTaskAction "$Script:localExInstall`Logging\EventBasedAssistants" "Event_Based_Assistants_Logs" Add-LogCopyFullTaskAction "$Script:localExInstall`Logging\EventBasedAssistantsCollection" "Event_Based_Assistants_Collection_Logs" } + + if ($PassedInfo.ConversationLogs -and $Script:localServerObject.Mailbox) { + Add-DefaultLogCopyTaskAction "$Script:localExInstall`Logging\ConversationAggregationLog" "Conversation_Aggregation_Logs" + Add-DefaultLogCopyTaskAction "$Script:localExInstall`Logging\ConversationProcessingLog" "Conversation_Processing_Logs" + } } ############################################ diff --git a/docs/Diagnostics/ExchangeLogCollector.md b/docs/Diagnostics/ExchangeLogCollector.md index c6cdfb1a3..4d5022d1a 100644 --- a/docs/Diagnostics/ExchangeLogCollector.md +++ b/docs/Diagnostics/ExchangeLogCollector.md @@ -70,6 +70,7 @@ AppSysLogs | Collects the Windows Event Application, System, and MSExchange Mana AppSysLogsToXml | Collects the Windows Event Application and System and saves them out to XML. The time range only is from the time the script run and the value set on `LogAge`. Default value: `$true` AutoDLogs | Enable to collect AutoDiscover Logs. Location: `V15\Logging\Autodiscover` and `V15\Logging\HttpProxy\Autodiscover` CollectFailoverMetrics | Enable to run the `CollectOverMetrics.ps1` script against the DAG. Only able to be run on an Exchange tools box or an Exchange Server. +ConversationLogs | Enable to collect the Conversation Logs. Location: `V15\Logging\ConversationAggregationLog` and `V15\Logging\ConversationProcessingLog` DAGInformation | Enable to collect the DAG Information from all different DAGs that are in the list of servers. DailyPerformanceLogs | Enable to collect Daily Performance Logs. Default Location: `V15\Logging\Diagnostics\DailyPerformanceLogs` EASLogs | Enable to collect Exchange Active Sync Logging. Location: `V15\Logging\HttpProxy\Eas`