docs/ref/modules/remoted/architecture.md
The remoted module is the communication gateway between Wazuh agents and the manager. It handles secure connections, message parsing, metadata enrichment, and event forwarding to the analysis engine.
┌──────────────────────────────────────────────────────────────────────┐
│ Wazuh Manager │
│ │
│ ┌────────────────────────────────────────────────────────────────┐ │
│ │ Remoted Module │ │
│ │ │ │
│ │ ┌──────────────┐ ┌─────────────────┐ ┌───────────────┐ │ │
│ │ │ Network │ │ Message │ │ Metadata │ │ │
│ │ │ Listener │───▶│ Handler │──▶│ Database │ │ │
│ │ │ (TCP/UDP) │ │ (Threads) │ │ (OSHash) │ │ │
│ │ └──────────────┘ └─────────────────┘ └───────────────┘ │ │
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │ │ ┌──────▼──────┐ │ │ │ │
│ │ │ │ Control │ │ │ │ │
│ │ │ │ Message │ │ │ │ │
│ │ │ │ Queue │ │ │ │ │
│ │ │ │ (Indexed) │ │ │ │ │
│ │ │ └──────┬──────┘ │ │ │ │
│ │ │ │ │ │ │ │
│ │ │ ┌──────▼──────────┐ │ │ │ │
│ │ │ │ Control Msg │ │ │ │ │
│ │ │ │ Processor │ │ │ │ │
│ │ │ │ (Threads) │ │ │ │ │
│ │ │ └──────┬──────────┘ │ │ │ │
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │ │ ┌────────▼─────────┐ │ │ │ │
│ │ │ │ wazuh-db │◀──────────┘ │ │ │
│ │ │ │ (Agent Info) │ │ │ │
│ │ │ └──────────────────┘ │ │ │
│ │ │ │ │ │
│ │ │ ┌─────────────────┐ │ │ │
│ │ └─────────────▶│ Event Queue │ │ │ │
│ │ │ (Round-Robin) │ │ │ │
│ │ └────────┬────────┘ │ │ │
│ │ │ │ │ │
│ │ ┌────────▼────────┐ │ │ │
│ │ │ Event Batch │ │ │ │
│ │ │ Dispatcher │◀──────────────┘ │ │
│ │ │ (Thread) │ (Enrichment) │ │
│ │ └────────┬────────┘ │ │
│ └─────────────────────────────────┼──────────────────────────────┘ │
│ │ │
│ ┌────────▼────────┐ │
│ │ HTTP Client │ │
│ │ (Unix Socket) │ │
│ └────────┬────────┘ │
└────────────────────────────────────┼─────────────────────────────────┘
│
┌────────▼────────┐
│ Analysisd │
│ /events/ │
│ enriched │
└─────────────────┘
Handles incoming connections from agents over TCP (port 1514, default) or UDP.
Processes received messages:
Message Types:
#!-): Keep-alive, startup, shutdownIn-memory cache storing agent metadata extracted from keep-alive messages:
Forwards enriched event batches to analysisd:
/var/wazuh-manager/queue/sockets/queueAgent sends event → Network Listener → Decrypt & Validate → Message Classification:
# Control message queue size (keep-alive processing)
remoted.control_msg_queue_size=16384
# Event batch queue capacity
remoted.batch_events_capacity=131072
# Message handler threads
remoted.worker_pool=4
For complete configuration options, see Configuration.