Splunk Search

Adding an event field to Stats Min command

petem3
New Member

When calculating a minimum value across events how can you then retain an event field related to the minimum value and display the minimum value with the event field?   

Labels (1)
0 Karma

thambisetty
SplunkTrust
SplunkTrust
| eventstats min(field) as min_field
| where field=min_field
| table _time, field
————————————
If this helps, give a like below.
0 Karma

petem3
New Member

I am trying to show the event date related to the min field value, along with the minimum value. 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

It would help to see your current query, but I think you want to try the eventstats command.

---
If this reply helps you, Karma would be appreciated.
0 Karma

thambisetty
SplunkTrust
SplunkTrust

eventstats 

| eventstats min(fieldname) 

https://youtu.be/vq3h9Qo5UPY

————————————
If this helps, give a like below.
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...