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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...