# Microsoft Office 365 integration not ingesting logs

**URL:** <https://discuss.elastic.co/t/microsoft-office-365-integration-not-ingesting-logs/371663>\
**Category:** Elastic Agent\
**Tags:** integrations\
**Created:** [December 9, 2024, 3:34am UTC](https://discuss.elastic.co/t/microsoft-office-365-integration-not-ingesting-logs/371663 "2024-12-09T03:34:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![enyei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/enyei/32/139797_2.png) [@enyei](https://discuss.elastic.co/u/enyei)\
**Post date:** [December 9, 2024, 3:34am UTC](https://discuss.elastic.co/t/microsoft-office-365-integration-not-ingesting-logs/371663/1 "2024-12-09T03:34:48Z")

</div>

Hi, I'm following this guide here to ingest Microsoft Office 365 logs from the Management API

> **[Microsoft Office 365 Integration | Elastic integrations | Elastic](https://www.elastic.co/guide/en/integrations/current/o365.html)**

I've already created an application and granted these permissions to the application. I've also granted Admin consent to these permissions.

- ActivityFeed.Read
- ActivityFeed.ReadDlp
- User.Read

There after i entered the `Directory (tenant) ID`, `Application (client) ID` and secret value.

However the data is not showing up on my elastic cloud instance. I've tried creating a data view, but I don't see `logs-o365.audit-2.6.5` being available.

For sanity, I tried manually connecting to the Management API via Postman and it works, yet Elastic is not creating any subscriptions or pulling any data down.

I did not install any agents, and it's purely an API connection setup.

Is there any other configuration I need to do?

---

<div class="post-metadata">

**Author:** ![enyei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/enyei/32/139797_2.png) [@enyei](https://discuss.elastic.co/u/enyei)\
**Post date:** [December 10, 2024, 6:43am UTC](https://discuss.elastic.co/t/microsoft-office-365-integration-not-ingesting-logs/371663/2 "2024-12-10T06:43:22Z")

</div>

Following up for anyone with the same issue:

You need to setup a server and run an Elastic Agent. You cannot just use the API as an integration. Somehow I could pull logs from AWS integration without an Agent, but it's not the same for O365.
