Splunk Search

Display the lowest duration for all models

moinyuso96
Path Finder

 

SerialNumberDuration
111A200
111A500
2222300
3333100
3333250

 

How can I display only the lowest duration for each SerialNumber.

 | dedup SerialNumber would sometimes get me the larger duration.

 

Expected Output:

SerialNumberDuration
111A200
2222300
3333100

 

Labels (1)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@moinyuso96 

Try

YOUR_SEARCH | stats min(Duration) as Duration by SerialNumber

My Sample Search :

| makeresults | eval _raw="SerialNumber	Duration
111A	200
111A	500
2222	300
3333	100
3333	250"| multikv forceheader=1 | stats min(Duration) as Duration by SerialNumber

 

KV

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...