I'm trying to get watcher to send me an email and it's giving me
failed to execute [email] action [my_first_watch_0-2015-05-22T13:45:55.181Z/send_email]. error: cannot find default email account as no accounts have been configured
I just ran a quick test with your example... should work fine. Are you sure the elasticsearch.yml is configured correctly. Make sure the configuration is properly indented... should look something like:
One other quick question - after entering the watcher SMTP settings, did you restart Elasticsearch? The elasticsearch.yml file is only read on startup.
@uboness : Yes I have things indented properly I just couldn't put spaces in my response here. And my settings look like they're in order.
@skearns : Yes I restarted my elasticsearch after editing the elasticsearch.yml. Do all of the nodes need to have the same elasticsearch.yml for this to work? I am the master node but another coworker has another node and is not here to restart it with an updated config file. If that is the problem then is there a way to remove his node from my instance?
We are working with test data here, so if I have to delete things it's okay.
As watcher runs on the master nodes, the configuration needs to be on all master nodes. So I'd definitely verify that the current master has the configuration. In your case, to detach yourself from the other node, simply shutdown your instance and bring it up again with a new cluster name, e.g.:
Ok, I changed my clustername and it looks like it is proceeding past that error now. Now I'm getting failed to send email with subject [Isnt't this fun?] via account [outlook]. I'm assuming I need to have two stage verfication on and Microsoft's pages are unresponsive at the moment. I'll update again when I can try.
Good to hear, it worked for you!
I am facing similar issue. Can you please let me know; which account setting you have changed and what are the changes?
Exception in thread "main" SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: ElasticsearchParseException[malformed, expected end of settings but encountered additional content starting at line number: [102], column number: [1]]; nested: ParserException[expected '', but found BlockMappingStart
in 'reader', line 102, column 1: watcher.actions.email.service.ac
I configured like a example but my elasticsearch don't start
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.