Hi, Dirk.
I didn't understand the requirement the first time.
You may need to use cross-cluster replication. Here is the Opensearch documentation that can help you achieve this configuration:
-
https://opensearch.org/docs/latest/tuning-your-cluster/replication-plugin/index/This is an Elasticsearch documentation that mentions what you need:
-
https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-ccr.html#ccr-data-localityAbout the index name, you will need to modify the
/usr/share/filebeat/module/wazuh/alerts/manifest.yml file to set a custom
index_prefix and restart Filebeat. e.g.:
module_version: 0.1
var:
- name: paths
default:
- /var/ossec/logs/alerts/alerts.json
- name: index_prefix
default: wazuh-alerts-4.x-cluster-1-
input: config/alerts.yml
ingest_pipeline: ingest/pipeline.json
To create a new index pattern you can use the Wazuh indexer API:
curl -XPOST "https://<indexer_ip>:<indexer_port>/.kibana/_doc/index-pattern:wazuh-alerts-4.x-cluster-1-*" \
-k -u <indexer_admin_user>:<indexer_admin_password> \
-H 'Content-Type: application/json' \
-d '{"type":"index-pattern","index-pattern":{"title":"wazuh-alerts-4.x-cluster-1-*","timeFieldName":"@timestamp"}}'
Also, you will have to configure a Wazuh dashboard connected to the Wazuh indexer cluster on the remote site.
Regards.
Gonzalo Acuña.