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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...