Splunk Search

How to search all indexes with the specified HASH-es in a lookup file?

evallja
Path Finder

Hello,

I have created and imported a lookup file ex. "hashes.csv" and I have pasted there a list of 500+ hashes.

I want to search with index=* to see if I find any of these hashes in _raw field of any type of log.

Thank you in advance.

Labels (1)
Tags (3)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Assuming the field in your csv is called hash, you could try something like this

index=* [|inputlookup hashes.csv | rename hash as query | fields query | format]

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

Assuming the field in your csv is called hash, you could try something like this

index=* [|inputlookup hashes.csv | rename hash as query | fields query | format]

evallja
Path Finder

@ITWhisperer  It worked, thanks a lot!!!

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...