# Is their any way to get unique result from the payload list data with search input string in watcher?

**URL:** <https://discuss.elastic.co/t/is-their-any-way-to-get-unique-result-from-the-payload-list-data-with-search-input-string-in-watcher/195077>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [August 13, 2019, 6:23pm UTC](https://discuss.elastic.co/t/is-their-any-way-to-get-unique-result-from-the-payload-list-data-with-search-input-string-in-watcher/195077 "2019-08-13T18:23:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saurabh06](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saurabh06/32/51529_2.png) [@saurabh06](https://discuss.elastic.co/u/saurabh06)\
**Post date:** [August 13, 2019, 6:23pm UTC](https://discuss.elastic.co/t/is-their-any-way-to-get-unique-result-from-the-payload-list-data-with-search-input-string-in-watcher/195077/1 "2019-08-13T18:23:04Z")

</div>

I have passed more than 2 input string in watcher and revived the listed payload data from Elastic Search but now i want to send mail only on latest result for each input string data in payload instead of all payload having multiple result for same input string. How we can implement ?

---

<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:** [August 14, 2019, 7:51am UTC](https://discuss.elastic.co/t/is-their-any-way-to-get-unique-result-from-the-payload-list-data-with-search-input-string-in-watcher/195077/2 "2019-08-14T07:51:28Z")

</div>

I am not sure I understand the requirement, can you supply some sample documents to clear up the confusion on my side?

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:** [September 11, 2019, 7:51am UTC](https://discuss.elastic.co/t/is-their-any-way-to-get-unique-result-from-the-payload-list-data-with-search-input-string-in-watcher/195077/3 "2019-09-11T07:51:40Z")

</div>

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