# How to save "total hits" results from a query, in a field

**URL:** https://discuss.elastic.co/t/how-to-save-total-hits-results-from-a-query-in-a-field/353807
**Category:** Logstash
**Created:** [February 21, 2024, 4:06pm UTC](https://discuss.elastic.co/t/how-to-save-total-hits-results-from-a-query-in-a-field/353807 "2024-02-21T16:06:25Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [February 21, 2024, 5:40pm UTC](https://discuss.elastic.co/t/how-to-save-total-hits-results-from-a-query-in-a-field/353807/2 "2024-02-21T17:40:53Z")

</div>

Does the field exist? See [this](https://discuss.elastic.co/t/comparing-number-in-conditionnal-event-treatement/217043/5) thread.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-save-total-hits-results-from-a-query-in-a-field/353807)._
