# Watcher query with array result

**URL:** <https://discuss.elastic.co/t/watcher-query-with-array-result/209849>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [November 28, 2019, 11:39am UTC](https://discuss.elastic.co/t/watcher-query-with-array-result/209849 "2019-11-28T11:39:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heatzone87](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/heatzone87/32/57088_2.png) [@Heatzone87](https://discuss.elastic.co/u/Heatzone87)\
**Post date:** [November 28, 2019, 11:39am UTC](https://discuss.elastic.co/t/watcher-query-with-array-result/209849/1 "2019-11-28T11:39:12Z")

</div>

Hey,

I have a query running to monitor my stack with below content:

```auto
### Match the following condition
WHEN max()
OF system.filesystem.used.pct
GROUPED OVER top 100 'host.hostname'
IS ABOVE 0.1
FOR THE LAST 5 minutes

```

Which works and will output my data as follows:

```auto
Watch *[{{ctx.metadata.name}}]* has exceeded the threshold of *{{ctx.metadata.watcherui.threshold}}* with value:
{{ctx.payload.results}}

```

However in slack it ends up like:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/3/238befb70422ebe9512344dd4225789773c0f410.png)

Is there a way to parse that list and show them 1 by 1 or something?

Best,  
Pim

---

<div class="post-metadata">

**Author:** ![Heatzone87](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/heatzone87/32/57088_2.png) [@Heatzone87](https://discuss.elastic.co/u/Heatzone87)\
**Post date:** [December 5, 2019, 3:45pm UTC](https://discuss.elastic.co/t/watcher-query-with-array-result/209849/2 "2019-12-05T15:45:09Z")

</div>

Nobody that has a clue if this is even possible?

---

<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:** [January 2, 2020, 3:45pm UTC](https://discuss.elastic.co/t/watcher-query-with-array-result/209849/3 "2020-01-02T15:45:15Z")

</div>

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