docs/ref/modules/remoted/configuration.md
Configuration options for remoted module.
File: /var/wazuh-manager/etc/wazuh-manager.conf
<wazuh_config>
<remote>
<port>1514</port>
<protocol>tcp</protocol>
<queue_size>131072</queue_size>
<allow_higher_versions>yes</allow_higher_versions>
</remote>
</wazuh_config>
| Option | Default | Description |
|---|---|---|
port | 1514 | Listening port |
protocol | tcp | Protocol: tcp, udp, or tcp,udp |
queue_size | 131072 | Message queue size |
allow_higher_versions | yes | Allow agents with higher version |
File: /var/wazuh-manager/etc/internal_options.conf or /var/wazuh-manager/etc/local_internal_options.conf
# Network
remoted.receive_chunk=4096
remoted.send_timeout_to_retry=5
# Threading
remoted.worker_pool=4
remoted.sender_pool=8
# Queues (important for stateless metadata)
remoted.control_msg_queue_size=16384
remoted.batch_events_capacity=131072
# Agent metadata cache expiration time in seconds [60..86400]
# Entries older than this threshold will be cleaned up periodically
# Default: 300 (5 minutes)
remoted.enrich_cache_expire_time=300
Guidelines:
The cleanup runs every 60 seconds and removes entries that haven't received a keepalive in the configured time period.
# Keep-alive processing
remoted.control_msg_queue_size=16384 # Default: 16384
# Event batching
remoted.batch_events_capacity=131072 # Default: 131072
Sizing Guidelines:
Metadata cache bucket count (requires recompile of src/remoted/agent_metadata_db.c):
50K agents: 8192
High Throughput (>50K events/sec)
remoted.control_msg_queue_size=32768
remoted.batch_events_capacity=262144
remoted.worker_pool=8
remoted.sender_pool=16
remoted.control_msg_queue_size=32768
remoted.keyupdate_interval=30
remoted.rlimit_nofile=131072
Also increase hash table buckets (requires recompile).
remoted.control_msg_queue_size=4096
remoted.batch_events_capacity=32768
remoted.worker_pool=2
remoted.sender_pool=4
Enable statistics in /var/wazuh-manager/etc/internal_options.conf:
remoted.state_interval=5
View statistics: cat /var/wazuh-manager/var/run/wazuh-manager-remoted.state
Enable debug logging:
remoted.debug=2