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!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...