Splunk Search

How to hide rows based on the number of rows returned from a transaction search?

sjanwity
Communicator

How do I hide rows based on the number of rows returned in a transaction?

(EDITED: removed all the contextual information as it wasn't needed)

1 Solution

aweitzman
Motivator

Check the mvcount of the field you're looking at. So in this case, you'd add a clause that says: | where mvcount(FIELD_VALUE)!=1

See http://docs.splunk.com/Documentation/Splunk/6.1.4/SearchReference/CommonEvalFunctions and check out the various mv* functions you can use on multivalued fields.

View solution in original post

aweitzman
Motivator

Check the mvcount of the field you're looking at. So in this case, you'd add a clause that says: | where mvcount(FIELD_VALUE)!=1

See http://docs.splunk.com/Documentation/Splunk/6.1.4/SearchReference/CommonEvalFunctions and check out the various mv* functions you can use on multivalued fields.

martin_mueller
SplunkTrust
SplunkTrust

Consider looking at the eventcount field produced by the transaction command as well.

0 Karma

sjanwity
Communicator

@aweitzman beautiful as always; thanks! Especially appreciate how you give the relevant splunk doc links as well.

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 ...