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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...