Step 1: Sign into your Office admin account via https://portal.office.com
Step 2: Navigate to Exchange admin center.
Step 3: On the left pane, click Mail flow >> Message trace.
Step 4: Click Start a trace button on the top-left.
Step 5: Set the period to generate logs by sliding the start and end positions.