{"error":{"root_cause":[{"type":"i_o_exception","reason":"could not parse watch
[log_error_watch]"}],"type":"i_o_exception","reason":"could not parse watch [log
_error_watch]","caused_by":{"type":"json_parse_exception","reason":"Unexpected c
haracter ('"' (code 34)): was expecting comma to separate OBJECT entries\n at [
Source: org.elasticsearch.transport.netty.ChannelBufferStreamInput@7f49033c; lin
e: 12, column: 2]"}},"status":500}
But i am getting error like...
{"error":{"root_cause":[{"type":"parse_exception","reason":"could not parse inpu
t for watch [log_error_watch]. unknown input type [auth]"}],"type":"parse_except
ion","reason":"could not parse input for watch [log_error_watch]. unknown input
type [auth]"},"status":400}
please take your time to read the exceptions. It explains that auth is not an input type, because you mis-structured your JSON. Please use a UI like sense or a JSON formatter to be aware of the structure.
Also please post the output of the execute watch API, once you successfully added the watch and executed it to take a further look.
Greetings!
I'm new to ELK and i need some help.
I'm having the same issue (cannot find default email account), and i don't seem to understand where's my syntax error here?
Elasticsearch log error:
[2016-08-03 17:06:55,980][ERROR][xpack.watcher.actions.email] [Shadowcat] failed to execute action [log_error_watch/send_email]
java.lang.IllegalStateException: cannot find default email account as no accounts have been configured
at org.elasticsearch.xpack.notification.email.Accounts.account(Accounts.java:72)
at org.elasticsearch.xpack.notification.email.InternalEmailService.send(InternalEmailService.java:73)
at org.elasticsearch.xpack.watcher.actions.email.ExecutableEmailAction.execute(ExecutableEmailAction.java:85)
at org.elasticsearch.xpack.watcher.actions.ActionWrapper.execute(ActionWrapper.java:109)
at org.elasticsearch.xpack.watcher.execution.ExecutionService.executeInner(ExecutionService.java:397)
at org.elasticsearch.xpack.watcher.execution.ExecutionService.execute(ExecutionService.java:280)
at org.elasticsearch.xpack.watcher.execution.ExecutionService$WatchExecutionTask.run(ExecutionService.java:450)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:392)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[2016-08-03 17:06:57,154][ERROR][xpack.watcher.actions.email] [Shadowcat] failed to execute action [log_error_watch/send_email]
java.lang.IllegalStateException: cannot find default email account as no accounts have been configured
at org.elasticsearch.xpack.notification.email.Accounts.account(Accounts.java:72)
Sense error:
"actions": [
{
"id": "send_email",
"type": "email",
"status": "failure",
"reason": "IllegalStateException[cannot find default email account as no accounts have been configured]"
}
]
Hi Alex!
Thanks for your response!!
xpack.notification.email: not working.
I'm getting the same error:
cannot find default email account as no accounts have been configured
Can you please show your exact configuration including indentation? (Just put the config file in three backticks for code formatting, see the markdown specs)... this might help to spot issues
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.