# Compare fields values in two different documents

**URL:** <https://discuss.elastic.co/t/compare-fields-values-in-two-different-documents/298833>\
**Category:** Elasticsearch\
**Created:** [March 4, 2022, 10:18am UTC](https://discuss.elastic.co/t/compare-fields-values-in-two-different-documents/298833 "2022-03-04T10:18:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticity2](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@elasticity2](https://discuss.elastic.co/u/elasticity2)\
**Post date:** [March 4, 2022, 10:18am UTC](https://discuss.elastic.co/t/compare-fields-values-in-two-different-documents/298833/1 "2022-03-04T10:18:46Z")

</div>

Hi All,  
I am trying to achieve the following search based on the data shown in the screenshot. This is just an example to provide context as to what I am trying to do. For a given PID, in this examples (smss.exe) I need to know if it is spawned by the correct process (System). i.e. I need to first find the Parent process PID of the Process I'm investigating and see if it is the correct one. How do I go about achieving this on Elasticsearch? Thanks in advance!

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/2/d231007b7818a16109978710c89a5533d60628eb.png)

---

<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:** [April 1, 2022, 10:19am UTC](https://discuss.elastic.co/t/compare-fields-values-in-two-different-documents/298833/2 "2022-04-01T10:19:21Z")

</div>

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