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!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...