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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...