Thank you for the response. Apologies for the multiple threads. I did try below both the queries you have suggested and its fetching only the fields of source1 .(i.e CID, Cname ,CData). Source2 fields are not being combined and fetched. I am not sure what am missing here .Please suggest. sourcetype="source1" OR sourcetype="source2" | eval common=if(sourcetype="source2",key,CID) | stats values(*) as * by common sourcetype="source1" OR sourcetype="source2" | eval common=if(sourcetype="source2",Key,CID) | eval CID=if(sourcetype="source2",CID,null()) | stats values(*) as * by common | fields - common sourcetype Key
... View more