# Setting value by reading from a file

**URL:** https://discuss.elastic.co/t/setting-value-by-reading-from-a-file/65280
**Category:** Elasticsearch
**Tags:** elastic-stack-alerting
**Created:** [November 7, 2016, 8:59pm UTC](https://discuss.elastic.co/t/setting-value-by-reading-from-a-file/65280 "2016-11-07T20:59:53Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![nielsoncr](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@nielsoncr](https://discuss.elastic.co/u/nielsoncr)
#### Post date: [November 8, 2016, 4:40pm UTC](https://discuss.elastic.co/t/setting-value-by-reading-from-a-file/65280/5 "2016-11-08T16:40:14Z")

</div>

Alex

I found this example to be helpful.

> [@Watcher chain input example, use case](https://discuss.elastic.co/t/watcher-chain-input-example-use-case/37688):
>
> Hi All, I am interested in evaluating watches from multiple inputs, as described in chain input approach on [watcher input ref]. ([https://www.elastic.co/guide/en/watcher/current/input.html#input-chain](https://www.elastic.co/guide/en/watcher/current/input.html#input-chain)). I am wondering if this is a valid scenario, or at least something that could be intended for by chain inputs: first input is a search input, second input is also a search input with parameters depending on ctx.payload.first.hits.hits.\_source Is this a valid approach on the current watcher…

Thanks

---

_[View the full topic](https://discuss.elastic.co/t/setting-value-by-reading-from-a-file/65280)._
