Hi Emar,
I have tested and verified that you can use the restrict option to monitor a specific file type using sregex. Basically, you can use r
estrict=".docx$|.txt$" in your directory tag like below.
<directories realtime="yes" restrict=".docx$|.txt$">C:\Users\*\Desktop</directories>
<directories realtime="yes" restrict=".docx$|.txt$">C:\Users\*\Documents</directories>
<directories realtime="yes" restrict=".docx$|.txt$">C:\Users\*\Downloads</directories>
This example monitors real-time file changes for all users (Used * mark to define any user).
You can add the above configuration to the ossec.conf file between the syscheck code block.
After configuring, make sure to restart the agent to apply changes.
Restart-Service -Name wazuhFor more details, you can refer to our official
guide.
Let me know the update on this so we can assist further.