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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...