If I understand the matter right, this should get you started.
| inputlookup lookup2
| lookup lookup1 hostname
| where isnotnull(ip)
| table hostname ip
If I understand the matter right, this should get you started.
| inputlookup lookup2
| lookup lookup1 hostname
| where isnotnull(ip)
| table hostname ip