Splunk Search

Omit/filter/exclude events from a transaction

pburkholder
New Member

When I do the following search

sourcetype="access*" [ search method="POST" |fields clientip | rename clientip as query ] | transaction clientip

I get transactions that include all the requests for .css, .js, .png, etc. I'd like to remove that clutter from the transactions. Being simple-mineded, I tried:

sourcetype="access*" [ search method="POST" |fields clientip | rename clientip as query ] | transaction clientip | regex url!="\.(png|css|js|ico)"

But that didn't help. How can I exclude stuff I don't want to see within a transaction?

Thanks -- Peter

Tags (2)
0 Karma
1 Solution

dwaddle
SplunkTrust
SplunkTrust

Hi Peter,

Filter it out before it gets into the transaction. Something like:

sourcetype="access*" [ search method="POST" |fields clientip | rename clientip as query ] 
NOT ( png OR css OR js OR ico) | transaction clientip

View solution in original post

0 Karma

dwaddle
SplunkTrust
SplunkTrust

If this resolved your issue, please 'accept' the answer by clicking on the outlined check-box to the left of it. Thanks!

0 Karma

pburkholder
New Member

Doh! Thanks!

0 Karma

dwaddle
SplunkTrust
SplunkTrust

Hi Peter,

Filter it out before it gets into the transaction. Something like:

sourcetype="access*" [ search method="POST" |fields clientip | rename clientip as query ] 
NOT ( png OR css OR js OR ico) | transaction clientip
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...