# Filebeat o365 error

**URL:** https://discuss.elastic.co/t/filebeat-o365-error/302936
**Category:** Beats
**Tags:** filebeat
**Created:** [April 21, 2022, 3:30pm UTC](https://discuss.elastic.co/t/filebeat-o365-error/302936 "2022-04-21T15:30:16Z")
**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 21, 2022, 3:30pm UTC](https://discuss.elastic.co/t/filebeat-o365-error/302936/1 "2022-04-21T15:30:16Z")

</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 19, 2022, 5:31pm UTC](https://discuss.elastic.co/t/filebeat-o365-error/302936/2 "2022-05-19T17:31:14Z")

</div>

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