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?

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

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
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. 

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma
Get Updates on the Splunk Community!

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...