Hello Juan
you can collect MSSQL audit logs through Windows event channels.
MSSQL logs are typically logged under the Security event channel, which is part of the default configuration of a Wazuh agent.
For instance, you can create a rule to alert when the Windows event ID 33205 (which related to MSSQL audit logs) has triggered in the system by adding the following rule to /var/ossec/etc/rules/local_rules.xml in your Wazuh manager side:
<group name="MSSQL,">
<rule id="100002" level="3">
<if_sid>60003</if_sid>
<field name="win.system.eventid">^33205</field>
<description>MSSQL audit log</description>
</rule>
</group>
Don't forget to restart your Wazuh manager after the change.
Best Regards