Splunk Search

How do you compare 2 fields in a lookup against a single field in Splunk?

jacqu3sy
Path Finder

Hi,

I have a lookup with 2 fields, (device and IP) either of which can be used to log in to Splunk as the 'host' field. How can I compare both against the host field?

The ultimate aim is to pull back the last time the device logged in to Splunk, either via the device or the IP field.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

I see at least two options:

  • build a denormalized version of your lookup containing two rows per host, one where host=IP and one where host=device
  • run the original lookup twice and coalesce the output
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...