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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...