Hello,
To get user names for domain-joined computers, you can use the Wazuh Active Directory integration. This integration allows you to monitor and analyze Active Directory events, including logon events. You can configure the integration to extract the user name from the logon event and send an alert to Wazuh. From there, you can view the alert in the Wazuh dashboard or Kibana and take appropriate action.
Wazuh can process the logs from the following Azure AD activity reports, each one of them requiring a different query to be executed:
Report type QueryDirectory audits auditLogs/directoryaudits
Sign-ins auditLogs/signIns
Provisioning auditLogs/provisioning
To monitor Azure Active Directory effectively, I recommend referring to the official Wazuh documentation on Monitoring Azure Active Directory. This resource will provide you with detailed information and instructions on how to configure and use Wazuh for this purpose:
Wazuh - Monitoring Azure Active DirectoryThe Wazuh "azure-logs" module requires dependencies to work as well as the right credentials to access the logs. Take a look at this link before proceeding:
Wazuh - Monitoring activity and services - PrerequisitesCheck the
azure-logs module reference for more information about how to use the different parameters available.
Also, This documentation
here and
here gives you detailed information on how to monitor active directory logs
Regards!