Exchange 2013 - 특정 그룹 메시지 수/발신 건수 추출
시나리오
21년 2월 한달간 AD 속성 중 extensionattribute15번의 속성이 2341인 메일 사서함의 메일 수/발신 건수 추출
메시지 중 eventid = SUBMIT 인 건 만 조회함
$mailboxes = (Get-ADUser -LDAPFilter "(&(objectclass=user)(mail=*)(extensionattribute15=2341))" `
-SearchScope Subtree -SearchBase "OU=testlab,DC=testlab,DC=net").UserPrincipalName `
| get-mailbox | Select WindowsEmailAddress
$mailboxes | %{Get-MessageTrackingLog -EventId SUBMIT -Sender $_.WindowsEmailAddress `
-Start "02/01/2021 00:00:00" -End "02/28/2021 11:59:59"} `
| Export-Csv -Path F:\MSGTRACKIN_SEND_SHOPPING.csv -NoTypeInformation -Encoding UTF8
$mailboxes | %{Get-MessageTrackingLog -EventId SUBMIT -Recipients $_.WindowsEmailAddress`
-Start "02/01/2021 00:00:00" -End "02/28/2021 11:59:59"} `
| Export-Csv -Path F:\MSGTRACKIN_RECEIVE_SHOPPING.csv -NoTypeInformation -Encoding UTF8
$mailboxes = $null
메시지 추적 로그 검색
관리자는 Exchange PowerShell의 Get-MessageTrackingLog cmdlet을 사용하여 Exchange 2016 및 Exchange 2019에서 메시지 추적 로그를 검색하는 방법을 Get-MessageTrackingLog 있습니다.
docs.microsoft.com
www.codetwo.com/admins-blog/message-tracking-logs-exchange/
Message tracking logs in Exchange - Understanding their structure
Message tracking logs in Exchange are a source of information on the mail flow. This article explains the structure of message tracking logs and shows how to gather relevant data using Get-MessageTrackingLog cmdlet. See how to use message tracking logs for
www.codetwo.com
Message tracking
Summary: Learn about message tracking and the message tracking log in Exchange Server 2016 and Exchange Server 2019.
docs.microsoft.com