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!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...