# Migrating Watcher alerts for redeploy

**URL:** <https://discuss.elastic.co/t/migrating-watcher-alerts-for-redeploy/296677>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [February 9, 2022, 5:18am UTC](https://discuss.elastic.co/t/migrating-watcher-alerts-for-redeploy/296677 "2022-02-09T05:18:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stud21](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@Stud21](https://discuss.elastic.co/u/Stud21)\
**Post date:** [February 9, 2022, 5:18am UTC](https://discuss.elastic.co/t/migrating-watcher-alerts-for-redeploy/296677/1 "2022-02-09T05:18:10Z")

</div>

I have created a watcher alert in Kibana on a test environment which I need to transfer using Ansible as a new build to another environment. I have looked at the link below which is doesn't provide information to do so.  
How do I ?

---

<div class="post-metadata">

**Author:** ![Felix\_Roessel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felix_roessel/32/41623_2.png) [@Felix\_Roessel](https://discuss.elastic.co/u/Felix_Roessel)\
**Post date:** [February 9, 2022, 8:25am UTC](https://discuss.elastic.co/t/migrating-watcher-alerts-for-redeploy/296677/2 "2022-02-09T08:25:38Z")

</div>

Just copy the json code of your watcher job and execute it in the new system.  
You can copy the json code by pressing the button in the UI or using the API.

API can be accessed using the Dev Tools in Kibana.  
This is the documentation for the APIs: [Watcher APIs | Elasticsearch Guide [7.17] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api.html)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 9, 2022, 8:26am UTC](https://discuss.elastic.co/t/migrating-watcher-alerts-for-redeploy/296677/3 "2022-03-09T08:26:31Z")

</div>

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