Splunk Search

Appending Lookup Match to Search Results

driva
Path Finder

Hi all,

I have a search that filters results based on a lookup file. Is there a simple way that I can add the match from the lookup file to the table/results?

index=web[| inputlookup HighRiskWords.csv | eval HighRiskWords="*"+HighRiskWords+"*" | rename HighRiskWords as web_Search] | stats count by web_Search, web_User, _time

It would be great to have the final piece of the search to be: Web_Search, {web_MatchingLookup}, web_user, _time

Thanks!

0 Karma

13tsavage
Communicator

Can you elaborate and provide more details to what exactly you are trying to do?

0 Karma

starcher
SplunkTrust
SplunkTrust

don't do that. use a lookup as a lookup and make it a wildcard match type.

index=web 
| lookup HighRiskWords web_Search outputnew web_Search as isFound
| where isnotnull(isFound)
| stats count by web_Search, web_User, _time
0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...