Hello everyone,
We’ve encountered significant disk space usage in our Wazuh environment, specifically related to the wazuh-states-vulnerabilities index. Here are the details:
Issue:
Setup Details:
Questions:
Any guidance or shared experiences with managing the size of this index would be greatly appreciated.
Thank you in advance,
Karl
Hello,
Can you ask some questions in order to have more information to better approach the issue?
On the other hand, where is the bulk of this data? That is, we need to know where these data are being concentrated. Could you run some du -h commands on the paths where there is more space occupied and share the results? Please look at the /var/ossec/queue directories, among others.
Please remember to hide sensitive information.
Thank you.
Hello,
This very large directory is the one that has the elements that have not yet been processed. Assuming that there is no problem with the connection to Wazuh Indexer, they should be removed little by little.
But, it can happen in some cases and it is known that this processing goes into a loop and the folder only grows in size. This is fixed in version 4.10.0 which is now available. Here is the upgrade guide to 4.10.0.
In case it is not possible to upgrade, then you could reset all the module information as explained here. This should solve the problem.
We are currently working on an enhancement for 4.10.1 on this issue that will make the processing faster and, thus, the queue will go down faster. You can read it here.
Hope it helps.