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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...