If you follow your architecture. 4 managers forward the data to one indexer.
Follow this doc for the configuration of the Wazuh manager.
https://documentation.wazuh.com/current/installation-guide/wazuh-server/step-by-step.html
In the filebeat configuration, you need to mention the indexer IP
/etc/filebeat/filebeat.yml
output.elasticsearch.hosts:
- 10.0.0.1:9200
output.elasticsearch:
protocol: https