我刚刚尝试使用 elasticsearch,现在尝试创建第一个观察者
我在 elasticsearch 文档中阅读了一些信息:https ://www.elastic.co/guide/en/x-pack/current/watcher-getting-started.html
现在我尝试创建一个:
https://es.origin-test.cloud.rccf.ru/apiconnect508/_xpack/watcher/watch/audit_watch
PUT 方法 + auth 标头
我输入:
{ "trigger" : {
"schedule": {
"interval": "1h"
}
}, "actions" : { "send_email" : {
"email" : {
"to" : "ext_avolkova@rencredit.ru",
"subject" : "Watcher Notification",
"body" : "{{ctx.payload.hits.total}} logs found"
} } } }
但现在我看到了错误:
未找到 uri [/apiconnect508/_xpack/watcher/watch/log_audit] 和方法 [PUT] 的处理程序
请帮我创建一个简单的观察者