I have a number of watchers configured in Elastic which I would like to activate/deactivate in one go. I'm planning to create a Jenkins job and use the below APIs.
PUT _xpack/watcher/watch/watcherid/_deactivate
PUT _xpack/watcher/watch/watcherid/_activate
Hi @spinscale,
Going through a few posts on the forums, I'm assuming I should be able to provide the username/password as part of the cURL command similar to below. Can you confirm on this please? Last question then, my Jenkins resides on a different server than where the ELK components are hosted. So the localhost & port part is not going to be valid. Should the hostname be the same that I use to view the Kibana dashboard?
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.