I adjusted your search to use the _internal index, you should be able to adjust the SPL to suit your use case. This is where I would use eventstats to create a new field on each even that had the max value, and then filter to just those. And if you have two time buckets that have the same, grab just the latest. index=_internal | bucket _time span=1m | stats count by sourcetype _time | eventstats max(count) as maxcount by sourcetype ```Get the max count for all buckets by sourcetype``` | where maxcount=count ```Filter down to where the maxcount is the count``` | stats latest(_time) AS _time, latest(count) by sourcetype ```Get just the latest time for that sourcetype, and the count```
... View more