Why monitoring Wazuh health with daemon statistics matters
A Wazuh deployment can look healthy on the dashboard while the pipeline behind it is dropping or delaying events. The dashboard shows alerts that arrived, so a quiet console can mean nothing is happening, or it can mean agents are connected but the server is shedding events under load. Daemon statistics are the internal counters and state files that Wazuh daemons write as they run. They show how much data each stage received, processed and discarded, which lets a team see the pipeline itself rather than only its output. The main daemons that expose this state are remoted, which receives agent traffic, analysisd, which decodes and applies rules, agentd on each endpoint, which sends data upstream, and logcollector, which reads local log sources. Each one tracks different symptoms, so a gap at one stage can be invisible at the next.
Teams need this in place before they depend on Wazuh for detection or evidence, not after the first missed incident. Dropped events are often silent: an overloaded queue does not usually raise an alert in the console, and a gap may only surface when someone searches for an event that should exist. Start by confirming on your installed version which state files and statistics fields each daemon writes, where they are stored, and how often they update, since file names and field names can change between releases. The vendor's documentation on the Wazuh release notes is the place to check version-specific changes before you write any parsing or alerting logic.
Plan this work as an ownership decision. Name who reads the statistics, what thresholds trigger an action, and who can change queue sizes or agent counts when pressure builds. Without those answers, counters are collected but never acted on. The rest of this page covers how to read each daemon's state and how to turn those readings into alerts that fire before data is lost.
How events move through the Wazuh pipeline and where state is written
The walk starts at the endpoint, where agentd forwards events that logcollector has read from local sources. remoted on the Wazuh server receives those connections, and analysisd decodes events and applies rules before the Wazuh indexer stores the resulting alerts. Queue pressure and dropped events can build at the hand-offs between these stages, so check each stage's statistics and state files, not only the dashboard, to see where data is slowing or being lost.
Event flow from agents through the server to the indexer, with state and queue points marked.
Which daemon signals to watch and what each one tells you
wazuh-remoted receives connections from agents and passes their messages toward the Wazuh server. Its state file (wazuh-remoted.state, which sits under /var/ossec/var/run/ on a default Linux install; confirm the path on your version) reflects how many agents are connected, how much traffic arrives and whether messages are waiting in its queue. A rising backlog here means data is arriving faster than the server passes it on, or the next stage is not taking messages.
- Connection trend: changes in the number of connected agents show whether enrollment or network paths are stable.
- Queue pressure: a queue that stays near its limit means messages are waiting, and drops may follow.
- Discarded messages: counters for discarded or rejected traffic point to malformed messages, key problems or sizing limits.
- Network path: check firewall rules and load balancer health on the agent communication port your deployment uses.
- Downstream dependency: if remoted is backed up while analysisd is slow, the cause sits downstream, not at the network edge.
Check the remoted state first, then compare it with agent connection status in the dashboard to see whether the gap is at the network edge or inside the server.
wazuh-analysisd runs decoders and rules over every event that reaches the server. Its state file (wazuh-analysisd.state, under /var/ossec/var/run/ on a default Linux install; confirm on your version) reflects the event pipeline: events received, events processed, events dropped and the fill level of its internal event queue. Dropped events are the most serious signal in this set, because an event dropped at this stage never reaches the indexer and cannot be recovered from the pipeline later.
- Received versus processed: a widening gap means analysis is slower than intake.
- Dropped events: treat any increase as data loss until someone has explained it.
- Queue fill level: sustained high usage usually comes before drops, while short spikes during bursts may be expected.
- Rule and decoder changes: broad or recent content changes can raise processing cost, so compare drop timing with the change log.
- Host resources: CPU and disk I/O on the server host slow analysis when they run short.
Check the analysisd state and the drop counter first, then line up the timing with recent rule changes, agent floods and host resource graphs.
wazuh-agentd runs on each endpoint and maintains the agent's connection to the manager. Its state file (wazuh-agentd.state, under /var/ossec/var/run/ on a default Linux install; confirm on your version) reflects whether the agent is connected, when it last communicated with the manager and whether it is keeping up with what it sends. Agent-side problems show up here first and affect only that endpoint, so one state file is often the fastest way to separate a host issue from a server issue.
- Connection status: a connected or reconnecting state tells you whether the link is stable; repeated reconnects point to network instability.
- Last contact time: a stale value means the agent has stopped reporting, even when the host itself is running.
- Key and enrollment errors: a rejected key often appears as a connection failure, so check the agent log as well as the state.
- Buffering during outages: confirm how your version buffers events while disconnected before assuming nothing is lost during an outage.
- Version alignment: check agent and manager compatibility in the release notes before troubleshooting behavior that may be a version mismatch.
On a single endpoint, read the agentd state and the agent log together, then check whether other agents on the same network segment show the same pattern.
wazuh-logcollector reads the log files and command outputs the agent is configured to follow. Its state file (wazuh-logcollector.state, under /var/ossec/var/run/ on a default Linux install; confirm on your version) reflects which files it tracks, how far it has read into each one and whether it is falling behind on busy sources. When logcollector lags, events are usually still present at the source, but they reach analysis late, which matters for time-sensitive alerts.
- Tracked files: a file that should appear in the state but does not may point to a path, permission or rotation problem.
- Read position: a read position that stops advancing means logcollector has stalled on that file.
- Rotation handling: after log rotation, confirm the new file is picked up and the old one is fully read.
- File permissions: the agent user must be able to read each followed file, and access errors often appear only in the agent log.
- Log volume spikes: a noisy application can delay every other source on the same host.
Check the state entry for the file that stalled, then confirm its path, permissions and rotation behavior on that host before changing anything on the server.
Monitoring options and when each fits
This table compares three ways to watch the Wazuh pipeline: reading daemon state files on the host, scraping statistics into an external monitoring tool, and using the server API or dashboard views. Read each row against your team's size, how quickly you need to know about lost events, and how much monitoring you are willing to maintain. The main takeaway is that no single option covers everything, and the monitoring path itself needs its own health checks.
| Approach | Effort to set up | Coverage and operational load |
|---|---|---|
| Read state files directly | Low to moderate. Needs shell access to each Wazuh server and cluster node and a schedule to read the files. | Shows per-daemon state for the host it runs on. Adds little load, but every node needs its own check and the output needs parsing. |
| Scrape statistics into an external tool | Moderate to high. Needs an exporter or script, a time-series store, dashboards and alert rules. | Gives history, trends and alerting across nodes. Adds a new system that must be monitored, patched and kept in sync with Wazuh upgrades. |
| Use the server API or dashboard views | Low for ad hoc checks. Moderate to script regular polling with an automation account and scoped RBAC permissions. | Good for operator checks and status views. Depends on the API and dashboard being up, so it can fail at the same moment the pipeline does. |
| Alert on pipeline loss | Moderate. Needs thresholds for dropped events and queue pressure agreed with the SOC. | Catches the condition that matters most: data loss before it reaches the indexer. Thresholds need tuning per environment. |
| Monitor the monitoring stack | Moderate. Needs a separate check that confirms the scraper, collector and alert path are themselves running. | Prevents silent gaps when the monitoring tool fails. Often skipped, so confirm it is part of the design before go-live. |
| Confirm before choosing | Ask your team which Wazuh version and daemon statistics fields your build exposes, since these differ by release line. | Check the release notes for the version you run, and test each option on a non-production cluster before relying on it. |
How to set up daemon statistics alerting in order
This sequence moves from confirming that Wazuh daemon statistics are readable on every node, through measuring normal load and setting thresholds, to routing alerts to an owner and proving the alert fires under controlled load. The result is an alert that warns the team while queues are still filling, before events are dropped.
Confirm statistics are enabled on each node
Start on every Wazuh server node and, where relevant, on the indexer and dashboard hosts. Confirm that the statistics output for the remoted, analysisd, agentd and logcollector daemons is being written and that the files are readable by the account that will run the collection job. Check the relevant configuration blocks in the server configuration file and the file permissions on the statistics directory. The step is done when every node produces current statistics output that you can read manually, and you have written down each node's role in a single inventory so no node is missed later.
Verify the daemon state files on each node
Read the state files for each daemon on each node and confirm they update over time. Compare two readings taken a short interval apart to show that counters move and are not frozen. Record which fields hold queue depth, event counts and dropped events for each daemon, because field names can differ between releases. Confirm this against the version you run, using the vendor documentation for your release. The step closes when you can name the field for queue pressure and the field for dropped events on every node, and both values change as agents report.
Establish a baseline under normal load
Collect the statistics over a representative period of normal operation, covering regular business hours, scheduled jobs and the usual agent check-in pattern. Record queue depth, event throughput and drop counts per daemon and per node, along with the agent count at the time. Store the values somewhere the team can review later. The baseline is complete when you can state the typical range for each metric on each node and explain any regular peaks, such as patch windows or batch reporting, that would otherwise look like incidents.
Define thresholds for queue pressure and drops
Using the baseline, set warning and critical thresholds for queue utilization and for any non-zero dropped event count. Keep thresholds per node where node sizes differ, and document why each value was chosen. Include a rule for sustained pressure, so a single short spike does not page the on-call team, and a rule that treats any drop as worth reviewing. Ask your Wazuh partner or vendor support to confirm which thresholds the release treats as meaningful. The step is done when a written threshold table exists and each entry maps to a metric you verified in the earlier steps.
Route alerts to a named owner
Build the collection and comparison job that reads the statistics and evaluates the thresholds, then send its output to a monitoring channel that a named team reads. Assign a primary owner and an escalation path, and document what the owner must do when a warning or critical alert fires. Include the node name, daemon and metric in every message so responders do not need to log in to find the source. The step is done when a test message reaches the owner's channel and the runbook states the first three actions on receipt.
Test the alert with controlled load
Generate a controlled increase in event volume in a non-production or agreed maintenance window, using a method approved by the platform owner, such as a test agent group sending a defined volume of events. Watch the daemon statistics while the load runs and confirm that queue pressure rises, the warning threshold fires and the critical threshold fires only if the planned load is high enough. Stop the load and confirm the alert clears. Record the observed values in the baseline document. The step closes when the alert fired and cleared as designed and the owner acknowledged it.
Review thresholds after each change
Repeat the baseline check after agent count changes, new log sources, node additions or a Wazuh version upgrade, since queue behavior can shift when any of these change. Update the threshold table and the runbook each time, and re-run the controlled test when a threshold changes. The step is complete for each change when the new baseline is recorded, the threshold table reflects it and the alert has been checked again on the affected node.
How queue pressure turns into dropped events
Dropped events happen when a queue fills faster than its consumer can drain it. In a Wazuh deployment, agents send events to the server through remoted, which hands them to analysisd for decoding and rule matching. Analysisd works from an internal event queue, and if that queue is full when new events arrive, the excess is discarded. Many agents reconnecting after a network outage, a large batch of file integrity or inventory scans finishing together, or a burst of authentication failures can push a large volume through the same path in a short time. A single burst is usually harmless because the queue absorbs it and drains again. The risk comes from what slows the consumer down. Analysisd cannot finish work if the indexer is slow to accept alerts, and the indexer cannot accept data when its disks are under pressure, its JVM heap is saturated or its shards are unbalanced. When any of these stalls, the queue stops draining and the backlog grows.
The practical question is whether a high reading is a transient burst or sustained pressure. A burst shows a sharp rise in queue usage followed by a fall within minutes, with the indexer's write latency returning to normal. Sustained pressure shows the baseline itself climbing across successive samples, with the queue rarely returning to empty and drops appearing in more than one collection window. Confirm the counters and file locations for your version in the Wazuh documentation before you build checks around them, because statistics are exposed through state files that differ by daemon. Then tie each alert to a trend, such as the queue staying above a threshold across several consecutive intervals or the drop counter increasing over a rolling window. Single-sample alerts generate noise during normal bursts and train the on-call team to ignore the signal. Pair the queue alert with indexer disk usage and agent connection counts so that the on-call engineer can see the likely cause on the same screen.
Security and operational considerations for health monitoring
Health telemetry from remoted, analysisd, agentd and logcollector reveals how your pipeline behaves, so it deserves the same access control as the alerts themselves. The cards below cover who can read state files, which accounts a monitoring tool may use, how alert channels are protected, how long health data is kept, and how to keep the monitoring path away from the API.
Limit read access to state files
The daemon state files on each Wazuh server and agent show queue levels, connection status and counters that an attacker could use to time activity while detection is degraded. Keep them readable only by the Wazuh service account and the administrators who troubleshoot the pipeline. Check the file permissions on every cluster node after each upgrade, because a package update can reset ownership. Confirm the exact file list and paths for your release in the Wazuh documentation before writing access rules.
Use a read-only monitoring account
A collector that scrapes health data should not hold an account that can change agents, rules or configuration. Create a dedicated user with the least role that can read status, and store its credentials in your secrets manager instead of in a script. Review the account's role assignments at each access review. Confirm which API permissions the status endpoints need in your release, since these can differ between versions.
Protect the alert channel
Alerts about a stalled pipeline are only useful if the messages reach the right people unchanged. Send them over encrypted channels, restrict who can edit the webhook or mail routing, and avoid putting raw host names or queue details into public chat rooms. Test the path with a deliberate threshold breach so you know it works. Document who receives each alert and who acts on it.
Set a retention period for health data
Health metrics tell an intruder when your visibility dropped, so they carry sensitive operational detail even though they contain no event content. Decide how long to keep scraped metrics and state snapshots, and align that with your log retention policy and any regulatory duty you hold. Store them in the same controlled environment as the rest of the platform. Ask your compliance lead to confirm the required period before setting it.
Keep the monitoring path off the API
A health check that calls the Wazuh server API from outside the trusted network widens the attack surface of the API, which holds credentials and agent control. Scrape from inside the management network, restrict the source addresses that may reach the API port, and use a reverse proxy or firewall rule to block public access. Verify the rules by testing from an untrusted network segment. Review the Wazuh hardening guidance for your version before exposing any new endpoint.
Questions teams ask before monitoring Wazuh health
Who does the work when monitoring Wazuh health with daemon statistics?
Your team owns the Wazuh deployment, and the work of watching its pipeline is usually shared between the people who run the SIEM and the people who run the platform. A partner can design the monitoring, build the collection and alerting, and document the runbook, but the alerts only help if someone on your side receives and acts on them. Confirm in the scope who builds the state file collection, who writes the alert thresholds, and who handles the first response when a queue fills up.
What does our internal team need to bring to this work?
Your team needs someone who can administer the Wazuh server and indexer, access to the hosts that run the manager and agents, and a clear owner for alert routing. Familiarity with Linux service logs and the statistics that Wazuh writes to its state files shortens the work considerably. If you use a ticketing system, a paging tool or a central log platform, name those systems early so the alerts reach the right queue.
Can we set up daemon statistics monitoring in-house?
Yes, many teams do this in-house, because the core steps are reading state files, watching event queue pressure and sending alerts before data is lost. The harder part is knowing which thresholds matter for your event volume and how the signals behave during agent storms or upgrades. If your team already runs Wazuh day to day and has time for testing, in-house work is realistic. If not, a fixed-scope engagement can cover the design, the build and the handover.
How long does setting up this monitoring take?
Duration depends on how many agents and manager nodes you run, whether you run a cluster, how many alert channels you need, and how much testing your change process requires. Smaller single-server deployments usually take less time than clustered ones with several notification paths. Ask any provider for a timeline that is tied to a written scope, and confirm how it accounts for testing in a non-production environment and for change approvals in your organization.
What drives the cost of this work up or down?
The main cost drivers are the size of the environment, the number of nodes in the Wazuh server cluster, the number of alert destinations, and the amount of testing and documentation you require. Costs also rise when the monitoring must cover agentless sources or offline installs, which need extra collection work. Your quote should list each component, state what is one-time work and what recurs, such as retainer support or threshold tuning after upgrades, and name who performs each task.
Does Wazuh itself charge a license fee for this?
The self-hosted Wazuh software is open source and distributed under the GNU General Public License version 2, with an exception for linking with OpenSSL, so there is no license fee for the software itself. Your costs are the infrastructure you run it on, the staff time to operate it, and any services you buy, such as implementation or support. Wazuh Cloud is a separate managed service with its own plans, so confirm which model you are pricing before you compare quotes.
Which daemon signals should we alert on first, and what happens if we wait?
Start with the signals that show data is being dropped or delayed, such as event queue pressure and the state of the remote daemon that receives agent traffic. If these are not watched, a backlog can build for hours before anyone sees missing alerts, and the gap may not be visible in the dashboard. Confirm the exact state file names and fields against the release you run, since Wazuh 4.14 is the current line and field layouts can change between versions.
How DeployOpen scopes and supports Wazuh health monitoring
DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure, including the Wazuh pipeline behind your alerts. For daemon statistics, the work starts with what your current Wazuh deployment exposes and what your team needs to be warned about before events are lost.
How we scope
- Inventory every Wazuh server and cluster node, and record where each daemon writes its state and statistics files.
- Agree which pressure signals matter, such as queue usage, dropped events and stalled agent connections, and who receives each alert.
- Confirm in writing which hosts, retention settings and alert channels are covered before any configuration work begins.
How we build
- Enable and collect the statistics output for remoted, analysisd, agentd and logcollector on each node in your environment.
- Ship the state data into dashboards and alert rules, tested against deliberate load so thresholds fire before queues overflow.
- Check the monitoring itself on the same version line you run, and confirm each statistic against the vendor documentation for that release.
How we hand over
- Deliver a written runbook listing each metric, its normal range in your environment, the alert threshold and the first response step.
- Document the configuration changes, file locations and owners so your platform team can maintain them without us.
- Walk your operations staff through a simulated backlog event and record what they did, what was missed and what changed.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer, including re-validating thresholds after Wazuh patch releases.
- Ask any quote to separate one-time build work from recurring retainer work, and to state what your own team must provide.

