I installed x-pack (both in Elasticsearch and Kibana, and also restarted all services) and tried to set an email alert by using watcher. However, when I clicked "test fire email", it gave me error showing " Watcher: Cannot read property 'message' of null" and then the browser forced me to quit the page and had to re-login. Couple weird things happened when I have been doing the watcher email alert configuration:
Every time when I installed x-pack ( I have tried install ELK in both CentOS and Ubuntu), the Kibana would just stop to receive any information from metricbeats and showed "no result found " page.
The last time I set this alert configuration, it showed me different error, which was "MessagingException: can't determine local email address"
I saw something like this yesterday. For me, I had to specify the "profile" to match the email account specified in Elasticsearch.yml when configuring the email action of the watch.
I am using all the newest version ES/Kibana/Metricbeat, which is 6.1. I did set the gmail email setting in elasticsearch.yml by following the reference. Actually, my gmail can get the security alert once I was trying to test the email configuration in watch, which means the elasticsearch was able to communicate with the gmail. But once I lowered the security configuration in gmail, it popped up another error, which was showing in the picture..
Actually, I am quite new to Elasticsearch, so what I did just follow the reference. And according to the reference, the only configuration I did in Elasticserach.yml was that I added the following :
Actually I was not quite familiar with some basic API operation, such as add the action. The error I got occurred when I set the watch configuration on Kibana webpage by clicking"Test fire an e-mail now" button ... But today, I tried to add a watch by using API method, the email alert worked! My gmail got the email from Elasticsearch. So I am assuming the problem is the testing feature, not the email setting. I just post the action I successfully executed for reference. Again, thanks for your help. Really appreciate!
I think I solved the problem. The reason I couldn't get any metricbeat info after instaling x-pack was I didn't set username and password in metribeat.yml . And the error I got when I was trying to send a "test email" still exists, however, it is able to send an alert email when I set an appropriate action. So I just ignore the error.
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.