# Restrict payload per chained query

**URL:** https://discuss.elastic.co/t/restrict-payload-per-chained-query/148352
**Category:** Elasticsearch
**Tags:** elastic-stack-alerting
**Created:** [September 12, 2018, 4:11pm UTC](https://discuss.elastic.co/t/restrict-payload-per-chained-query/148352 "2018-09-12T16:11:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![David\_Garza](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@David\_Garza](https://discuss.elastic.co/u/David_Garza)
#### Post date: [September 12, 2018, 4:11pm UTC](https://discuss.elastic.co/t/restrict-payload-per-chained-query/148352/1 "2018-09-12T16:11:24Z")

</div>

We are running a watcher every minute which may return many documents (1000s). We run the query results through a few different transformations using chained inputs. Of the 3 scripted transforms, I only need one of the inputs logged to the .watcher-history index but the others not.

How can I use the data for each chained input at runtime but selectively not log the data per chained input in the watcher history?

Thanks!

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [September 14, 2018, 11:29am UTC](https://discuss.elastic.co/t/restrict-payload-per-chained-query/148352/2 "2018-09-14T11:29:54Z")

</div>

there is currently no way of changing what is written into the history.

Do you really need all of the document data/fields or could you use [source filtering](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/search-request-source-filtering.html) to reduce this?

---

<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: [October 12, 2018, 11:29am UTC](https://discuss.elastic.co/t/restrict-payload-per-chained-query/148352/3 "2018-10-12T11:29:59Z")

</div>

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