PUT watcher API call using CURL


#1

Hi All,

I have watcher with id fuse-file-management

While trying to execute GET watcher API I get error "No route to host ". Is the URL correct?

curl -H "Content-Type: application/json" -X GET http://localhost:5601/_xpack/watcher/watch/fuse-file-management

curl -H "Content-Type: application/json" -X GET http://localhost:5601/app/_xpack/watcher/watch/fuse-file-management

In the example provided : https://www.elastic.co/guide/en/x-pack/5.0/watcher-api-put-watch.html
copy as curl doesn't work

Any Help is appreciated.


(Bryan Vest) #2

The curl command provided in the example uses port 9200 as in http://localhost:9200.

9200 is the port to the elasticsearch node
5601 is the Kibana port

See if that helps.

Bryan Vest


#3

Awesome. Saved my Day.
:clap:


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.