# Compare fields value

**URL:** https://discuss.elastic.co/t/compare-fields-value/311387
**Category:** Logstash
**Created:** [August 4, 2022, 9:02am UTC](https://discuss.elastic.co/t/compare-fields-value/311387 "2022-08-04T09:02:45Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![alex\_vermex](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_vermex/32/101267_2.png) [@alex\_vermex](https://discuss.elastic.co/u/alex_vermex)
#### Post date: [August 5, 2022, 2:12pm UTC](https://discuss.elastic.co/t/compare-fields-value/311387/3 "2022-08-05T14:12:53Z")

</div>

It works if these two fields in the same documents yes but in my case these two fields are not in the same document 😕 i created a [new topic](https://discuss.elastic.co/t/compare-two-fields-with-different-documents/311529) for this

---

_[View the full topic](https://discuss.elastic.co/t/compare-fields-value/311387)._
