Splunk Search

splunk search

SN1
Path Finder

so i have a index paloalto and a lookup file both have 1 field common app , now i want app which are present in lookup and index as well but there is a problem like in lookup if there is Alexa as an app then in index its amazon-alexa , or in lookup it is "windows xbox" in index it is "xbox-live" and some matches perfectly lilke spotify now tell me a spl where if any part of the name matches just display the app name from lookup as well as index.

Labels (1)
0 Karma

yuanliu
SplunkTrust
SplunkTrust

To further @PickleRick 's recommendation, how about you tell us how that lookup is produced?  What control do you have over that production?

One way or another, you need to describe the logic to "match" index field app to lookup field app.  Why does windows xbox match xbox-live?  Does windows-xbox match xbox-unalive, too?  Why doesn't windows-xbox match mail box?

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @SN1 ,

you could try something like this:

index=paloalto [ | inputlookup your_lookup.csv | rename app AS query | fields query ]

Ciao.

Giuseppe

0 Karma

PickleRick
SplunkTrust
SplunkTrust

You either need to fix your lookup or make an intermediate lookup for matching one set 0f values with another. How else is your Splunk supposed to know which values match which ones? Guess? Pick at random?

Get Updates on the Splunk Community!

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...

New Year. New Skills. New Course Releases from Splunk Education

A new year often inspires reflection—and reinvention. Whether your goals include strengthening your security ...