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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...