# Can I have mutiple key-value pair in watcher params?

**URL:** https://discuss.elastic.co/t/can-i-have-mutiple-key-value-pair-in-watcher-params/336187
**Category:** Elasticsearch
**Tags:** elastic-stack-alerting
**Created:** [June 16, 2023, 4:18am UTC](https://discuss.elastic.co/t/can-i-have-mutiple-key-value-pair-in-watcher-params/336187 "2023-06-16T04:18:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![JasonREC](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@JasonREC](https://discuss.elastic.co/u/JasonREC)
#### Post date: [June 16, 2023, 4:18am UTC](https://discuss.elastic.co/t/can-i-have-mutiple-key-value-pair-in-watcher-params/336187/1 "2023-06-16T04:18:20Z")

</div>

Hi, I am curretly using watcher to set up tasks.

But when I set up condition part, I want to make the params can contan mutiple key-value pair, so that in future I can easily change them to other value I want, but I encouter some error like below

Start of condition

 ![condition](https://us1.discourse-cdn.com/elastic/original/3X/2/0/20d99f876527a0c60d7b6fb3a3a95b2e1cdf44a6.png)

Params and error part

 ![params_errpr](https://us1.discourse-cdn.com/elastic/original/3X/a/1/a152b5836bb475c7ae967d146a76b4bfc265c3e0.png)

I am not sure if it is due to Elasticsearch is not allow mutiple key-value set up or something that I did wrong.

And, I also wonder if there is any way to store this long watcher code and other long search query code becuase previosly I logined my elastic account in another computer, I see those code are disappear in the kibana dev tool.

Thanks

---

<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: [July 14, 2023, 4:18am UTC](https://discuss.elastic.co/t/can-i-have-mutiple-key-value-pair-in-watcher-params/336187/2 "2023-07-14T04:18:25Z")

</div>

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