Hi,
I am wondering how to configure an email output for Outlook. In my current logstash configuration, I have the following code:
output {
elasticsearch {
hosts => "localhost:9200"
index => "somename"
}
if "Error" in [message]
email {
to=> 'email@somemail.com'
from => 'email@anotheremail.com'
subject => 'ALERT: Error in Logs'
body => "Tags: %{tag}\\n\\Information:\\n%{message}"
}
}
stdout{}
}
I see here that I will need to configure the SMTP in elasticsearch.yml. My question is: Is that all the required info to send an email when a log contains error? Also, is xpack.notifcations included in the default subscription?