Cluster ruleset

90 views
Skip to first unread message

Yossif Helmy

unread,
Mar 12, 2024, 11:39:50 PM3/12/24
to Wazuh | Mailing List
Hello,

Good day. I have a cluster of 3 servers, one master and two workers. If I want to exclude a specific rule or decoder do I have to exclude it on the 3 of them? And when making a decoder or rule does they get saved on the three servers?

Thank you.

Md. Nazmur Sakib

unread,
Mar 13, 2024, 12:44:18 AM3/13/24
to Wazuh | Mailing List

Hi Yossif Helmy,


Hope you are doing well. 


Suppose you want to exclude a specific rule or decoder. You need to exclude it by changing the configuration in the ossec.conf of the Wazuh manager. The master doesn't send its local configuration file(ossec.conf) to the workers. If the configuration is changed in the master node, it should be changed manually in the workers. So you have to exclude it in all three.


When making a decoder or rule it does get saved on the three servers but the worker nodes are not restarted. They must be restarted manually in order to apply the received configuration.


You can check this document to learn more about

How the cluster works


Let me know if you need any further information regarding this.

Yossif Helmy

unread,
Mar 13, 2024, 1:23:13 AM3/13/24
to Wazuh | Mailing List
Thank you for your reply. Suppose that I want to exclue a ruleset in just one server but not the other. This will cause a problem knowing that saving a decoder or a rule will be saved in all of the servers causing duplication errors. Is there a way to make this work or an exclude on every configuration file in every server in the cluster is inevitable?

Thank you.

Md. Nazmur Sakib

unread,
Mar 13, 2024, 2:08:29 AM3/13/24
to Wazuh | Mailing List

It seems it will cause an issue as custom rules and decoder will sync with worker nodes after the restart but if the default decoder and rules are not excluded on the worker nodes they will create conflict. You need to update the configuration in every manager 

<ruleset>

  <!-- Default ruleset -->

  <rule_exclude>your_rules.xml</rule_exclude>

 <decoder_exclude>your_decoders.xml</decoder_exclude>

</ruleset>

Currently, there is no other way to change the local configuration file(ossec.conf) on the worker node manually as you can see mentioned in this document How the cluster works


I hope this information helps. Let me know if you need any further assistance.

Md. Nazmur Sakib

unread,
Mar 15, 2024, 12:36:54 AM3/15/24
to Wazuh | Mailing List
Hi  Yossif Helmy,

Let me know if you need any further assistance regarding this.

Yossif Helmy

unread,
Mar 15, 2024, 7:30:41 AM3/15/24
to Wazuh | Mailing List
Thank you.
Reply all
Reply to author
Forward
0 new messages