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!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...