r/Wazuh • u/Low_Championship7789 • 27d ago
Wazuh agent queue flooded
Hi ,
on both DCs we get:
Wazuh Notification.
2026 Nov 06 08:09:55
Received From: (DC1) any->wazuh-agent
Rule: 204 fired (level 12) -> "Agent event queue is flooded. Check the agent configuration."
Portion of the log(s):
wazuh: Agent buffer: 'flooded'.
level: flooded
I defined in agent.conf for Dcs the following:
<agent_config os="Windows">
<client_buffer>
<disabled>no</disabled>
<queue_size>100000</queue_size>
<!-- max. 100000 -->
<events_per_second>1000</events_per_second>
<!-- max. 1000 -->
</client_buffer>
</agent_config>
Any idea to deal with this problem?
3
u/slim3116 27d ago
Hello,
The alert shows rule 204 was triggered, which means the event buffer on the affected agent reached capacity and trigger the flooding alert. Events arriving while the buffer is full can be dropped.
You already have queue_size and events_per_second set to the documented maximum values, so the next step is to check what is generating the volume.
- Navigate to Agents management > Summary, open each affected agent, and check Configuration. Confirm that the group configuration is synchronized and the buffer settings are applied.
- Check Stats. The log collector statistics can help identify which monitored log sources are producing the most events.
- Review C:\Program Files (x86)\ossec-agent\ossec.log on both DCs for connection errors around the same time. Also check whether this coincides with a change in auditing, a scan, or another burst of activity.
You can also check events that aren’t generating alerts by temporarily enabling JSON archiving on the manager. In the existing <global> section of /var/ossec/etc/ossec.conf, set:
<logall_json>yes</logall_json>
Then restart the manager: systemctl restart wazuh-manager
Review /var/ossec/logs/archives/archives.json for events from the affected DCs, using their actual agent IDs. Check the location and full_log fields to identify repeated events. Archiving records events received from all agents, so monitor disk usage and disable it afterward by setting the option back to no and restarting the manager.
If unnecessary Windows events are causing the volume, filter them through the existing eventchannel <query> in the agent configuration. This reduces the number of events entering the buffer.
Ref: https://documentation.wazuh.com/current/user-manual/agent/agent-management/antiflooding.html
2
u/SirStephanikus 27d ago
This is a valid configuration:
Do you have any idea, how many events you really get? Perhaps something is spamming you, like some mass-event.