Hi@akhtar,
You can use the Email plugin in Logstash. It allows you to connect your email account with the help of SMTP, IMAP, etc server. I have attached one example below for your reference.
output {
email {
to => "xyz@gmail.com"
body => "Message: This is Nadeem"
address => "smtp.gmail.com"
port => 587
username => "abc@gmail.com"
password => "password"
use_tls => true
}
}