Compare field value of two different index


(Anuj Shrivastava) #1

Hi @spinscale

please guide me.. please guide me to the following problem,
I have two different index and i want to compare two fields value and get result which exist in different index

for example :-
Index 1: threatintel
fields :- 1. indicator_ip
2. message
3. userid

Index 2: checkpoint
fields:- 1. srcip
2. dstip

Need query : Give source IP, message and timestamp
where threatintel.indicator_ip = (checkpoint.srcip or checkpoint.dstip)

please help me to achieve it.


(Rahul Desai) #2

I don't think this is possible in ES. You are trying to implement a sql like join which is not possible in ES. Two ways you can achieve this is:

1- At index time create a combined document
2- Do the join in your application


(system) #3

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