Splunk Search

transaction function and deduping mv values

mschellhouse
Path Finder

Is there an efficient way to mvdedup on all fields at once? Result is from transaction. Rather not convert to stats if don't have too.

0 Karma
1 Solution

elliotproebstel
Champion

The usual way to apply a function across multiple fields at once is to use foreach. Does this give you what you're looking for?

your current search using transaction 
| foreach * 
 [ | eval <<FIELD>>=mvdedup('<<FIELD>>') ]

View solution in original post

0 Karma

elliotproebstel
Champion

The usual way to apply a function across multiple fields at once is to use foreach. Does this give you what you're looking for?

your current search using transaction 
| foreach * 
 [ | eval <<FIELD>>=mvdedup('<<FIELD>>') ]
0 Karma

somesoni2
Revered Legend

mschellhouse
Path Finder

thank you!

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...