Splunk Search

Comparing Multivalue Fields

msscott63
New Member

I have numerous events, each of which has a multivalue field that has a list of X (where X is a number) hashes in it. I want to do the equivalent of the Transaction command and group all the events that have the exact same list of X hashes in that multivalue field. If it has greater than X or less than X hashes in it, it doesnt belong in the group. Only group those events which have the exact same set of X hashes in the multivalue field.

0 Karma

DalJeanis
SplunkTrust
SplunkTrust

You can use nomv to turn the multivalue field into single value field, and then connect the different events using transaction or stats or any number of other methods.

If the particular multiple hash values might be in a different order, then you probably want to sort them beforehand.

| eval myflatfield=mvsort(mymvfield)
| nomv myflatfield
| stats values(*) as * by myflatfield

woodcock
Esteemed Legend

Exactly how I would have done it.

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