Splunk Search

How to block the unusual url

10306629
New Member

Hi team,
I want to block unusual Url... could please suggest query for that

Example

www.abcd.com
www.ykui.com
www.oooss.com

i want to stop those url

Tags (1)
0 Karma

DalJeanis
Legend

@10306629 - we do not work at your organization. We have no idea what makes you think those urls are unusual. We also have no idea what you mean by "block" - presumably you want to remove them from a search.

Here's one way...

| where NOT match(myURL,"abcd.com") AND NOT  match(myURL,"ykui.com")  AND NOT  match(myURL,"oooss.com") 

That way will get rid of all events where the myURL field contains the matching characters, so it will also kill "xyzabcd.com" and "goooss.com.uk".

0 Karma

MuS
Legend

You need to provide more details and information on I want to block .... like How do you want to block them and where do you want to block them?

cheers, MuS

0 Karma

10306629
New Member

just want to see the usual url

0 Karma

10306629
New Member

i have to write query for that

0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...