# Correlating two different feilds from two different indxes

**URL:** <https://discuss.elastic.co/t/correlating-two-different-feilds-from-two-different-indxes/118846>\
**Category:** Logstash\
**Created:** [February 7, 2018, 1:05pm UTC](https://discuss.elastic.co/t/correlating-two-different-feilds-from-two-different-indxes/118846 "2018-02-07T13:05:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raj_kumar/32/25420_2.png) [@Raj\_Kumar](https://discuss.elastic.co/u/Raj_Kumar)\
**Post date:** [February 7, 2018, 1:05pm UTC](https://discuss.elastic.co/t/correlating-two-different-feilds-from-two-different-indxes/118846/1 "2018-02-07T13:05:53Z")

</div>

Hi All,

Is it possible to correlate two different fields from two different indexes using logstash using mutate or translate filter?

Like

```auto
filter {
 if [netflow][ipv4_src_addr] == [entity_threat] {
  mutate {
    add_tag => "true_src"
       }
    } else {
  if [netflow][ipv4_dst_addr] == [entity_threat] {
  mutate {
    add_tag => "true_dst"
       }
     }
   }

```

Note: **[netflow][ipv4\_src\_addr]** is **netflow-** \* index  
and  
**[entity\_threat]** is in **threat-** \* index

Please anyone help me to figure this out.

Thanks,  
Raj

---

<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:** [March 7, 2018, 1:05pm UTC](https://discuss.elastic.co/t/correlating-two-different-feilds-from-two-different-indxes/118846/2 "2018-03-07T13:05:54Z")

</div>

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