Splunk Search

remove URL from search result is not working

jw44250
New Member

My Splunk Query

index= index1 sourceType=source1 "Error" OR requestURl != "/test/abc" OR requestURI != "/person" OR requestURI != "error.php"

but still im getting the requestURI in my search result.

Im intersted in those events that have error .

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Every error message will match your query because they will all pass at least one of the requestURI tests. Try this query instead. It will display all errors except those from "/test/abc", "/person", and "error.php".

index= index1 sourceType=source1 "Error" (requestURl != "/test/abc" AND requestURI != "/person" AND requestURI != "*error.php")
---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

woodcock
Esteemed Legend

LIke this:

index="index1" sourceType="source1" Error AND NOT (requestURl="/test/abc" OR requestURI="/person" OR requestURI="error.php")
0 Karma

jw44250
New Member

Thank you

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Every error message will match your query because they will all pass at least one of the requestURI tests. Try this query instead. It will display all errors except those from "/test/abc", "/person", and "error.php".

index= index1 sourceType=source1 "Error" (requestURl != "/test/abc" AND requestURI != "/person" AND requestURI != "*error.php")
---
If this reply helps you, Karma would be appreciated.
0 Karma

jw44250
New Member

Thank you

0 Karma
Get Updates on the Splunk Community!

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...