I only have one idea, that this might be because two clusters are specified (tech-gcp and aws), but tech-gcp appears there automatically, and if I remove it, save the alert, and refresh the page, it still reappears.
Thank you in advance,
Anthony
The reason alerts were not firing is that the monitor was configured to query both clusters at once.
OpenSearch Alerting doesn’t properly evaluate remote data when a local cluster is also selected — it defaults to the local one even if data exists remotely.
You can try fixing this by targeting only the remote AWS cluster (aws:wazuh-alerts-*), aligning the time range and schedule to 10 minutes, and using the extraction query editor for a clean configuration.
You can paste this directly into the monitor’s Extraction query editor to bypass the UI issue and make sure it queries only the AWS remote cluster:
Once saved, the monitor will correctly detect documents from the AWS cluster and generate alerts as expected.
Please let me know how it goes.Just double-checked the behaviour with cross-cluster monitors.
In our current OpenSearch version, index-based “Per query” monitors don’t actually evaluate data that exists only on a remote cluster, even though the UI let select multiple clusters and shows a correct graph. The preview uses cross-cluster search, but the alerting engine only evaluates local indices, so the trigger never fires. Because of this, the alert won’t work as expected when the data is only in the AWS cluster. To have separate alerting for AWS you can try:
* creating the same monitor directly on the AWS/OpenSearch domain
* replicating the AWS indices into a local index on the tech-gcp cluster and pointing the monitor there. Once the data is local to the cluster where the monitor runs, the alert triggers correctly.
Here's a link that could be helpful: https://wazuh.com/blog/managing-multiple-wazuh-clusters-with-cross-cluster-search/