I was carrying out tests trying to replicate the environment that you mentioned in the first message and I confirm that it is not necessary for the names of the nodes to be the DNS names, what is necessary is that the data found in the config.yml and the opensearch.yml of each node match.
I share my configuration so that you can validate it:
---------------------------------------------------------------------------------
config.yml
nodes:
# Wazuh indexer nodes
indexer:
- name: wazuhindexer1
---------------------------------------------------------------------------------
opensearch.yml:
node.name: "wazuhindexer1"
cluster.initial_master_nodes:
- "wazuhindexer1"
- "wazuhindexer2"
- "wazuhindexer3"
cluster.name: "wazuh-cluster"
discovery.seed_hosts:
plugins.security.ssl.http.pemkey_filepath: /etc/wazuh-indexer/certs/indexer-key.pem
plugins.security.ssl.http.pemtrustedcas_filepath: /etc/wazuh-indexer/certs/root-ca.pem
plugins.security.ssl.transport.pemcert_filepath: /etc/wazuh-indexer/certs/indexer.pem
plugins.security.ssl.transport.pemkey_filepath: /etc/wazuh-indexer/certs/indexer-key.pem
plugins.security.ssl.transport.pemtrustedcas_filepath: /etc/wazuh-indexer/certs/root-ca.pem
plugins.security.ssl.http.enabled: true
plugins.security.ssl.transport.enforce_hostname_verification: false
plugins.security.ssl.transport.resolve_hostname: falseplugins.security.authcz.admin_dn:
- "CN=admin,OU=Wazuh,O=Wazuh,L=California,C=US"
plugins.security.check_snapshot_restore_write_privileges: true
plugins.security.enable_snapshot_restore_privilege: true
plugins.security.nodes_dn:
- "CN=wazuhindexer1,OU=Wazuh,O=Wazuh,L=California,C=US"
- "CN=wazuhindexer2,OU=Wazuh,O=Wazuh,L=California,C=US"
- "CN=wazuhindexer3,OU=Wazuh,O=Wazuh,L=California,C=US"
plugins.security.restapi.roles_enabled:
- "all_access"
- "security_rest_api_access"plugins.security.system_indices.enabled: true
plugins.security.system_indices.indices: [".opendistro-alerting-config", ".opendistro-alerting-alert*", ".opendistro-anomaly-results*", ".opendistro-anomaly-detector*", ".opendistro-anomaly-checkpoints", ".opendistro-anomaly-detection-state", ".opendistro-reports-*", ".opendistro-notifications-*", ".opendistro-notebooks", ".opensearch-observability", ".opendistro-asynchronous-search-response*", ".replication-metadata-store"]### Option to allow Filebeat-oss 7.10.2 to work ###
compatibility.override_main_response_version: true
---------------------------------------------------------------------------------
Request:
curl -k -u admin:admin
https://wazuhindexer1.wazuh.com:9200{
"name" : "wazuhindexer1",
"cluster_name" : "wazuh-cluster",
"cluster_uuid" : "ZazPQ1JFT2GUiF511qejmQ",
"version" : {
"number" : "7.10.2",
"build_type" : "rpm",
"build_hash" : "e505b10357c03ae8d26d675172402f2f2144ef0f",
"build_date" : "2022-01-14T03:38:06.881862Z",
"build_snapshot" : false,
"lucene_version" : "8.10.1",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "The OpenSearch Project:
https://opensearch.org/"
}
curl -k -u admin:admin
https://wazuhindexer1.wazuh.com:9200/_cat/nodes?vip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
192.168.56.252 46 41 0 0.15 0.06 0.06 dimr - wazuhindexer3
192.168.56.253 43 57 0 0.00 0.03 0.06 dimr - wazuhindexer2
192.168.56.254 29 23 0 0.00 0.01 0.05 dimr * wazuhindexer1