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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...