# Extracting fields from hits in watchers

**URL:** https://discuss.elastic.co/t/extracting-fields-from-hits-in-watchers/145675
**Category:** Elasticsearch
**Created:** [August 23, 2018, 8:13am UTC](https://discuss.elastic.co/t/extracting-fields-from-hits-in-watchers/145675 "2018-08-23T08:13:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Magnus\_Therning](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnus_therning/32/33091_2.png) [@Magnus\_Therning](https://discuss.elastic.co/u/Magnus_Therning)
#### Post date: [August 23, 2018, 8:13am UTC](https://discuss.elastic.co/t/extracting-fields-from-hits-in-watchers/145675/1 "2018-08-23T08:13:14Z")

</div>

I'm trying to limit the data I attach to emails by naming fields in `input.search.extract`. The examples I've found typically use something simple like `hits.total`, and that works. However, things like `hits.hits.0._source` don't result in anything being extracted.

Is it possible to pull things out of the hits and what is the syntax I should be using?

---

<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 20, 2018, 8:13am UTC](https://discuss.elastic.co/t/extracting-fields-from-hits-in-watchers/145675/2 "2018-09-20T08:13:27Z")

</div>

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