This configuration must be added inside the <ruleset> tag, and you need to specify the exact default decoder file name in <decoder-file-name>.xml.
However, in your case, you are talking about disabling a default decoder file, and it seems you are referring to 0380-windows_decoders.xml. This file contains multiple decoders, not just a single one.
In this situation, I recommend the following approach instead of disabling the entire decoder file directly:
1. Copy the default decoder file to the local decoders directory
I have already gone through the decoder file you shared, and I provided the updated decoder file in my previous response. In the decoder file you shared, there were newline characters inside the <order> tag, which caused the issue. I have corrected that in the updated decoder and shared it with you.
Additionally, I would like to suggest not replacing the entire default decoder file 0380-windows_decoders.xml with the custom decoder you shared. Replacing the full default decoder file can affect default rule dependencies and may cause the Wazuh manager to fail when those default decoders are excluded.
Instead, I recommend following the steps I shared earlier:
Copy the default 0380-windows_decoders.xml file to a custom decoder file.
Modify the required decoder or add your new custom decoder in the copied file.
If needed, adjust the existing decoder regex in that copied file based on your requirements.
This approach ensures that default rule dependencies remain intact and avoids stability issues on the Wazuh manager.
You can refer to the Wazuh decoder syntax documentation for creating or modifying decoders.
Please let me know if you have any further questions.