Getting Data In

How to search for blocked dns/urls in my logs?

waJesu
Path Finder

I have created a lookup table for the blocked dns/url. I want to see if there are anywhere in my logs or in my environment. May you help with a query. For example if I have example.net on my lookup table what query can I use that returns all logs with example.net?

Labels (1)
Tags (2)
0 Karma

inventsekar
SplunkTrust
SplunkTrust

Hi @waJesu ...

Considering your lookup file name as "yourfilename.csv", when you run this, do you get the whole lookup file?
| inputcsv yourfilename.csv

may i know if you have done this task - enriching data with a CSV lookup file link

0 Karma

waJesu
Path Finder

Yes it returns the whole table. What I need now is the query that returns results if any of the contains of the lookup table is present in the logs.

Tags (2)
0 Karma

inventsekar
SplunkTrust
SplunkTrust

Hi @waJesu 

you should give us some sample logs and the lookup table few lines sample.. then only SPL can be created easily. 

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 ...