Skip to content

Commit

Permalink
Merge pull request #2193 from microsoft/dpaul-ElcDev
Browse files Browse the repository at this point in the history
Add Event Based Assistants Logs to ELC
  • Loading branch information
dpaulson45 authored Sep 19, 2024
2 parents 9e7e698 + dfb8a91 commit 42fcb0c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Diagnostics/ExchangeLogCollector/ExchangeLogCollector.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ param (
[switch]$DailyPerformanceLogs,
[switch]$EASLogs,
[switch]$ECPLogs,
[switch]$EventBasedAssistantsLogs,
[switch]$EWSLogs,
[Alias("ExchangeServerInfo")]
[switch]$ExchangeServerInformation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function Get-ArgumentList {
TransportLogging = $TransportLogging
EASLogs = $EASLogs
ECPLogs = $ECPLogs
EventBasedAssistantsLogs = $EventBasedAssistantsLogs
EWSLogs = $EWSLogs
ExchangeServerInformation = $ExchangeServerInformation
ExMon = $ExMon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function Test-NoSwitchesProvided {
$IISLogs -or
$DailyPerformanceLogs -or
$ManagedAvailabilityLogs -or
$EventBasedAssistantsLogs -or
$ExPerfWiz -or
$RPCLogs -or
$EASLogs -or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function Test-PossibleCommonScenarios {
$Script:TransportProtocolLogs = $true
$Script:MitigationService = $true
$Script:MailboxAssistantsLogs = $true
$Script:EventBasedAssistantsLogs = $true
}

if ($TransportLogging) {
Expand All @@ -51,6 +52,7 @@ function Test-PossibleCommonScenarios {
$Script:PipelineTracingLogs = $true
$Script:TransportRules = $true
$Script:AcceptedRemoteDomain = $true
$Script:EventBasedAssistantsLogs = $true
}

if ($TransportConnectivityLogs) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ function Invoke-RemoteMain {
Add-LogCopyFullTaskAction $Script:localServerObject.TransportInfo.MBXLoggingInfo.PipelineTracingPath "Mailbox_Pipeline_Tracing_Logs"
}
}

if ($PassedInfo.EventBasedAssistantsLogs -and $Script:localServerObject.Mailbox) {
Add-LogCopyFullTaskAction "$Script:localExInstall`Logging\EventBasedAssistants" "Event_Based_Assistants_Logs"
Add-LogCopyFullTaskAction "$Script:localExInstall`Logging\EventBasedAssistantsCollection" "Event_Based_Assistants_Collection_Logs"
}
}

############################################
Expand Down
1 change: 1 addition & 0 deletions docs/Diagnostics/ExchangeLogCollector.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ DAGInformation | Enable to collect the DAG Information from all different DAGs t
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`
ECPLogs | Enable to collect ECP Logs. Location: `V15\Logging\ECP` and `V15\Logging\HttpProxy\Ecp`
EventBasedAssistantsLogs | Enable to collect Event Based Assistants Logs. Location: `V15\Logging\EventBasedAssistants` and `V15\Logging\EventBasedAssistantsCollection`
EWSLogs | Enable to collect EWS Logs. Location: `V15\Logging\HttpProxy\Ews` and `V15\Logging\Ews`
ExchangeServerInformation | Enable to collect Exchange Information like Get-ExchangeServer, Get-MailboxServer, etc... This is also collected when `-ServerInformation` is also enabled.
ExMon | Enable to collect ExMon data from the server.
Expand Down

0 comments on commit 42fcb0c

Please sign in to comment.