# Office 365 filebeat error

**URL:** https://discuss.elastic.co/t/office-365-filebeat-error/303026
**Category:** Beats
**Tags:** filebeat
**Created:** [April 22, 2022, 11:58am UTC](https://discuss.elastic.co/t/office-365-filebeat-error/303026 "2022-04-22T11:58:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ima](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ima/32/99895_2.png) [@ima](https://discuss.elastic.co/u/ima)
#### Post date: [April 22, 2022, 11:58am UTC](https://discuss.elastic.co/t/office-365-filebeat-error/303026/1 "2022-04-22T11:58:40Z")

</div>

Hello, we want to integrate office 365 with filebeat, we have activated the module and filled the config file as shown

audit:  
enabled: true  
var.application\_id: "\*\*\*\*\* _**"  
var.tenants:  
\*\*- id: ""  
name: " .onmicrosoft.com"  
var.client\_secret: "**_"

but we get in the received logs the error bellow

unable to acquire authentication token for tenant:\*\*\*\*\*\*\*\*\*\*\*\*\*\*: refreshing spt token: adal: Failed to execute the refresh request. Error = 'Post "[Sign in to your account](https://login.microsoftonline.com/ ********** /oauth2/token?api-version=1.0)

has anybody encoutered this error, thank you in advance for your help.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 20, 2022, 1:58pm UTC](https://discuss.elastic.co/t/office-365-filebeat-error/303026/2 "2022-05-20T13:58:49Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
