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
Legend

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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...