The email output needs to connect to a SMTP server to send the e-mails, since you didn't configure the domain option in the output, it is connecting to localhost.
Since you want to send the e-mail as your gmail user, you need to use the Gmail smtp server, which I think is smtp.gmail.com in the domain option, but If I'm not wrong you will need to change somethings in your gmail account to allow that, I think you will need to crea an app password.
This is not a Logstash issue, you need to check in Gmail/Google documentation how to send e-mails using their SMTP.
I just want to ask you if i can regroupe all this mails in one mail contains all of them or somthing like this cuz imagine that i have more than 40 exception for example it will send me a 40 emails ?!
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.