Hi Team,
Could you please confirm whether there is a maximum limit on the number of values a CDB can hold (for example, 100, 1,000, or 10,000)?
Or is it possible to add values without a defined limit?
Thanks in advance.
Hi CRIZ,
Wazuh doesn't have a fixed maximum limit on how many values (or entries) you can put in a CDB list, like there's no rule saying only 100, 1,000, or 10,000 are allowed.
You can keep adding values without hitting a strict cap. The lists are just plain text files turned into a fast database format, and Wazuh loads them into memory when the manager starts or restarts.
In real use, people have made very large ones successfully. For example:
So yes, it's possible to go big, but there are some practical things to watch out for:
The official docs don't mention any hard limit on entry count or file size for CDB lists. Limits usually come from your server's resources (mainly RAM) or how the API/dashboard handles big files.
If you're planning something large, I'd suggest:
Here are the main places this info I gathered from.
One alternative approach is to use regex within the CDB list, though it's worth noting that this feature is still being developed. You can keep an eye on the progress through this open GitHub issue: https://github.com/wazuh/wazuh/issues/6893
In the meantime, you'll need to manually add all possible combinations to the CDB list, as changing case sensitivity during the decoder parsing phase isn't currently supported.
If your JSON logs are being collected via localfile, another workaround is to create a custom Python script that monitors the existing log file. Whenever a new entry is added, the script can rename the specific field you need and rewrite the log into a new, cleaned-up file. You can then point Wazuh's localfile configuration to collect logs from that reorganized file instead.
For more details on setting that up, you can refer to the official Wazuh documentation here: https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/localfile.html