I'm trying to send an email using logstash, however logstash keep sending the same email every minutes. The output configuration as per below. Any ideas what went wrong?
output {
email {
to => "zyx@gmail.com"
body => "Here is the event line that occured: %{message}"
address => "smtp.gmail.com"
port => 587
username => "xyz@gmail.com"
password => "mypass"
use_tls => true
}