Hello Team,,
I am trying to integrate Office 365 with Wazuh following the official documentation Monitoring Office 365 audit logs - Monitoring Office 365. I have correctly configured Office 365, and in Wazuh, I have the following module enabled in ossec.conf:
However, when checking the logs, I only receive the following error:
I have verified the following:
Correct credentials (tenant_id, client_id, and client_secret).
Proper permissions in Azure AD.
Network connectivity to Office 365 endpoints.
Correct configuration in ossec.conf.
Despite these validations, the error persists, and I am not receiving events from Office 365 in Wazuh.
Has anyone faced a similar issue? Any suggestions on how to resolve or better debug it?

I really appreciate your support.
Replace %CLIENT_ID% , %CLIENT_SECRET% and %TENANT_ID% with yours; you should receive a valid JSON response: