Microsoft 365

Download 117
Last updated Aug 11, 2024

m365-exchange-mail-flows

Fetch Exchange mail flow message trace logs using Office 365 Reporting API

m365-exchange-mail-flows [profile=PROFILE] [duration=NUM{mon|w|d|h|m|s}] [from=yyyyMMddHHmmss] [to=yyyyMMddHHmmss]
profile=PROFILE
Microsoft 365 connect profile name
duration=NUM{mon|w|d|h|m|s}
Scan only recent data. You should use s(second), m(minute), h(hour), d(day), mon(month) time unit. For example, 10s means data from 10 seconds earlier.
from=yyyyMMddHHmmss
Start time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
to=yyyyMMddHHmmss
End time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.

Output Fields

FieldTypeNameDescription
_timeDateTime
profileStringConnect profileMicrosoft 365 connect profile code
mail_fromStringSender addressEmail address format
mail_toStringRecipient addressEmail address format
mail_subjectStringMail subject
sizeLongSizeIn bytes
statusStringStatuse.g. Failed, Delivered, Expanded, Quarantined
src_ipIP addressSource IP
indexIntegerIndex
msg_idStringMassage ID
msg_trace_idStringMassage Trace IDGUID format
organizationStringOrganization namee.g. TENANT.onmicrosoft.com
start_dateStringStart datee.g. /Date(1723102739000)/
end_dateStringEnd datee.g. /Date(1723189139000)/