Hi @OLUWATOSIN EMMANUEL ODEKOYA ,
Thank you for posting your query on Microsoft Q&A. I am Saiteja from Q&A will be assisting you with your query.
Based on the error, I understand that you have an issue while retrieving the logs from Azure to Wazuh.
As per the error, I see the O365 management API exception errors while retrieving the logs. This issue occurs when you do not have proper licenses to retrieve the details from Azure. For O365 API, we need at least Premium P1 or Premium P2. I would request you to check if you can get any of the following licenses and try the same.
Also, if your application calls for Unified logs, you need to ensure to turn on the logs using the following document: https://learn.microsoft.com/en-us/office/office-365-management-api/troubleshooting-the-office-365-management-activity-api#enable-unified-audit-logging-in-office-365.
I hope this information is helpful. Please feel free to reach out if you have any further questions.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment