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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...