I have read about Centralized configuration in Wazuh. But can the rules be enabled/disabled in server instead of changing in all servers ?
Asked
Active
Viewed 1,734 times
1 Answers
1
I found answer here..
Within the ossec model, the agents have no information about rules whatsoever. So, if you need to modify a rule, you need to do it on the server side.
How do you do it? If you have a rule like that (from our FAQ):
` <group name="local">
<rule id="100101" level="0">
<if_sid>123, 456</if_sid>
<match>xyz</match>
<description>Events ignored</description>
</rule>
</group>
`
But you only want it to apply to one agent, you need to use the "hostname" tag to limit it to the agents you want:
<group name="local">
<rule id="100101" level="0">
<if_sid>123, 456</if_sid>
<match>xyz</match>
<hostname>agent1|agent2</hostname>
<description>Events ignored</description>
</rule>
</group>
Hope it helps.

Sravan
- 596
- 1
- 9
- 19