Splunk Search

Splunk 8.0.1 and 8.2.0 stats latest behaving differently

mrrijo
New Member

Following produces values for a and b in Splunk 8.2.0, but in 8.0.1, values of a is empty

Is there any changes in behaviour of stats latest in 8.2.0?


| makeresults
| eval a=1,b=2
| fields - _time
| stats latest(a) as a by b

Labels (1)
0 Karma

pbarbuto
Path Finder

Seems like a bug in 8.2 since there shouldn't be a value. You're using latest, but there's no timestamp to go off. Use 'values' instead.

| makeresults
| eval a=1,b=2
| fields - _time
| stats values(a) as a by b

0 Karma

mrrijo
New Member

This is not my original search. I created this search to highlight the issue. My original search needs latest instead of values to achieve the desired results.

But thanks for testing this out and letting me know.

How to file a bug report?

0 Karma
Get Updates on the Splunk Community!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...