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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...