@NAVEEN_CTS, I am glad you found the comment useful. Personally, I prefer search with index values so that I can implement left , right, full outer join and other joins using stats command.
Like
| search index="A" OR index="B"
Or
| search index="A" AND index!="B"
Or
| search index!="A" AND index="B"
etc.
Using dc() aggregate you can only perform inner join. However, in your case since that is what you need your accepted answer should do the needful, which is the same as
| search index="A" AND index="B"
Do up-vote the comments if they helped 🙂
... View more