Email notification - when search string matched in logs

Hello All ,

I have some requirement. if you know about it , please kindly tell me ?
I have to set up a Grafana alert, that alerts when It matches a string “Registration completed” in logs and it need to send a notification email.
i have created a query and when ever it matches the specified String , in the panel it is showing a count of it. but not able to send email notification
Any idea how to do that?

Hi @stallion,

Welcome to the :grafana: community support forums !!

I think what you are looking for is to first create a contact point in Alert manager inside Grafana UI and then send it via email.

For the first part i.e. Contact point, please view this video and documentation for more clarity.

For the SMTP configuration, you will need to first enable and configure it with the correct details inside the /etc/grafana/grafana.ini

#################################### SMTP / Emailing ##########################
[smtp]
;enabled = false
;host = localhost:25
;user =
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
;password =
;cert_file =
;key_file =
;skip_verify = false
;from_address = admin@grafana.localhost
;from_name = Grafana
# EHLO identity in SMTP dialog (defaults to instance_name)
;ehlo_identity = dashboard.example.com
# SMTP startTLS policy (defaults to 'OpportunisticStartTLS')
;startTLS_policy = NoStartTLS

I hope this helps.

Yes Thanks . before I was using older version and now in 9.1.3 I was able to create Alert and trigger emails .