Hello again,
By default, agents stop adding files to the database once 100k files have been scanned.
To change this limit, you need to change subsection <file_limit> (inside section <syscheck>) in your agents' configuration file.
You can increase the file limit number or even disable this limit.
Please take a look at this link:
https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/syscheck.html#file-limitKeep in mind that if the number of files scanned is increased, then the time for a complete file scan is also increased. If you increase the limit, you may also need also to increase the scan frequency time to set it to an according rate. So that the agent is not constantly scanning the files.
Please let me know if this helps.
Regards