I am trying to create a rule using REST API. I tried using curl and also using the console. I get the following error when I try to create the rule.
[types removal] Specifying types in document index requests is deprecated, use the typeless endpoints instead (/{index}/_doc/{id}, /{index}/_doc, or /{index}/_create/{id}).
The Dev Tools console can only be used to send requests to Elasticsearch, but the API you're wanting to use is available at the Kibana server, not the Elasticsearch server. You'll have to use a tool like curl, Postman, etc, to send the HTTP request to Kibana.
There's a typo in your curl invocation (the - extra -d '" after the content-type header), and the JSON has a new line between con and ditions in the actions. Other than that, the request worked for me, though it did not recognize the action id .
Thanks a lot. Can you post your file please ? If I remove the -d '', and remove the new line between con and ditions, I am getting the following error.
line 39: unexpected EOF while looking for matching `"'
line 42: syntax error: unexpected end of file
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.