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!

Splunk Observability Synthetic Monitoring - Resolved Incident on Detector Alerts

We’ve discovered a bug that affected the auto-clear of Synthetic Detectors in the Splunk Synthetic Monitoring ...

Video | Tom’s Smartness Journey Continues

Remember Splunk Community member Tom Kopchak? If you caught the first episode of our Smartness interview ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud? Learn how unique features like ...