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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...