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!

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