Thank you for your search which helped but still join worked with this stats . Further , i am not able differentiate which sourcetype the Name belongs too.This is needed becoz when the Name is available in a sourcetype the other sourcetypes Agent should be changed as "Not in Scope" based on the sourcetype with which the Name belongs too. my query is like , index=A (sourcetype=Compare OR sourcetype=Fire) | fillnull value="" | stats values(*) as * values(sourcetype) as sourcetype by Name | eval Status=if(Fire_Agent_Version = "" AND Compare_Agent_Version = "","Not Covered","Covered") |eval Compare_Agent_Version=if(Status="Not Covered","Not installed",Compare_Agent_Version) |eval Fire_Agent_Version=if(Status="Not Covered" AND Compare_Agent_Version="Not installed","Not in Scope",Agent_Version) |eval Fire_Agent_Version=if(Status="Not Covered" AND Compare_Agent_Version="Not installed","Not in Scope",Fire_Agent_Version) | table sourcetype Name, Fire_Agent_Version, Compare_Agent_Version, Status
... View more