Splunk Search

Lookup search wigh showing matched keyword

msalghamdi
Explorer

Hello Splunkers

How can i utilize a lookup in a correlation search showing the detected keyword in the search result ?

its a requirement that the analyst shouldn't have the capability to view lookups


Thanks in advance.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @msalghamdi ,

could you better describe your requirement, eventually with an example?

Ciao.

Giuseppe

0 Karma

msalghamdi
Explorer

thanks for the prompt response.

 

our risk team wants to provide a list of critical project keyword which will be stored as a lookup, and we'd search the DLP logs for any match  in the lookup, but the require that the analyst shouldn't have the ability to view the lookup which means that the analyst wouldn't know what keyword matched if the DLP captured more that a file/keyword in one log, so we thought if maybe there's a way we can highlight matched keywords in the search

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

You could try protecting access to the lookup by putting in a kv store and accessing it through a custom command. This custom command would be in an app which is protected from "casual" users with particular roles and permissions. The custom command would return the matching word without disclosing the contents of the lookup. This is not a trivial solution but may at least go some way to meeting your requirement.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @msalghamdi ,

it isn't so immediate if you want to search on all the raw events, if instead you want to search on a predefined field it's easier.

In the second case you can use the lookup command, something like this:

<your_search>
| lookup your_lookup.csv your_key OUTPUT your_key AS found_key

In the other case there was a solution from @somesoni2 to my same requirement of around 10 years ago, very hard to remember.

Ciao.

Giuseppe

0 Karma

msalghamdi
Explorer

Hello.

 

the field in my search is "file_name" while the field in the lookup is called "phrase", i tried to use this but it didnt work:

| lookup my_lookup.csv phrase OUTPUT file_name AS found_key
0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...