Getting Data In

how to pick values by latest source

Mohsin123
Path Finder

Hi,

My source file gets updated every 5 minutute . How to chart values of a field by the latest source file?

0 Karma

Sukisen1981
Champion

Assuming your updated source file gets indexed every 5 minutes- meaning you will have new events indexed every 5 minutes, what you can try out is - <your search> |eventstats max(_time) as time | where _time=time| <rest of your query>
This ensures that ONLY the latest time events are being picked up for further processing after the where condition

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 ...