# Email Headers from Office 365

**URL:** <https://discuss.rapid7.com/t/email-headers-from-office-365/1505>\
**Category:** InsightIDR\
**Created:** [July 23, 2020, 9:24pm UTC](https://discuss.rapid7.com/t/email-headers-from-office-365/1505 "2020-07-23T21:24:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick\_hook](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/patrick_hook/32/92_2.png) [@patrick\_hook](https://discuss.rapid7.com/u/patrick_hook)\
**Post date:** [July 23, 2020, 9:24pm UTC](https://discuss.rapid7.com/t/email-headers-from-office-365/1505/1 "2020-07-23T21:24:33Z")

</div>

Has anyone had success with getting email headers / email logs from Office 365 into Rapid 7?

---

<div class="post-metadata">

**Author:** ![felipe\_legorreta](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/felipe_legorreta/32/161_2.png) [@felipe\_legorreta](https://discuss.rapid7.com/u/felipe_legorreta)\
**Post date:** [July 27, 2020, 6:28pm UTC](https://discuss.rapid7.com/t/email-headers-from-office-365/1505/2 "2020-07-27T18:28:59Z")

</div>

Hey @patrick_hook,  
Not actually sure if Microsoft will let you audit the headers. I do know you can do a manual trace of an email, but not automatic logging.

> **[Message trace in the Security & Compliance Center - Office 365](https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/message-trace-scc?view=o365-worldwide)**
>
> Admins can use message trace in the Security & Compliance Center to find out what happened to messages.

  

> **[Run a message trace and view the results in the Exchange admin center](https://docs.microsoft.com/en-us/exchange/monitoring/trace-an-email-message/run-a-message-trace-and-view-results)**
>
> Learn how to use message trace in the Exchange admin center to find out what happened to email messages.

However, if you can write those email logs to an event hub, then IDR can ingest them through our Azure event source.

I hope this helps, but do let me know if you have further questions.

Regards,  
Felipe
