Splunk Enterprise

common fields

Siddharthnegi
Contributor

I have 2 lookups . first lookup have multiple fields including Hostname and the second lookup have only Hostname field . I want to find common Hostname from both lookups ,How can i do that?

0 Karma

manjunathmeti
Champion

Hi @Siddharthnegi ,

You can use this query, this works if the field Hostname is there in both the lookups.

| inputlookup first_lookup where ([| inputlookup second_lookup | fields Hostname])

 

Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...