# Match 2 log sources fields within the Query

**URL:** <https://discuss.elastic.co/t/match-2-log-sources-fields-within-the-query/87901>\
**Category:** Elasticsearch\
**Created:** [June 1, 2017, 12:08pm UTC](https://discuss.elastic.co/t/match-2-log-sources-fields-within-the-query/87901 "2017-06-01T12:08:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tharu85](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tharu85](https://discuss.elastic.co/u/tharu85)\
**Post date:** [June 1, 2017, 12:08pm UTC](https://discuss.elastic.co/t/match-2-log-sources-fields-within-the-query/87901/1 "2017-06-01T12:08:51Z")

</div>

I have two log sources. All data are indexed to Elasticsearch.  
Both log sources have same field name called "source\_ip"

So I need to match one log source source\_ip field value with other source source\_ip value.

In other words If both source\_ip equal it should return matched result.

I have tried it, but I unable to follow an match the equation of common filed of both log sources.

Please help

---

<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:** [June 29, 2017, 12:09pm UTC](https://discuss.elastic.co/t/match-2-log-sources-fields-within-the-query/87901/2 "2017-06-29T12:09:01Z")

</div>

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