Alert on OpenSearch logs

Hello community,
So I am using Grafana to display dashboards with logs coming from my Wazuh (datasource Opensearch), and I would like to know if theres a way grafana can send me an email notification in real time whenever a new log from wazuh comes in grafana? I have tried to set up alerting but the e-mail notification is not really working on real time.

Is it possible to alert on real time? if so, could anyone send me an step-by-step of this?

Thank you!

See example: Warning when creating an Alert: "Expression warning - 1 items dropped from union(s): ["${B} > 1.000000": (1.000000: {})]"
Of course you need to write Opensearch (Lucene) query in your case.