Splunk Search

Round a stats count with K abbreviation

jizzmaster
Path Finder

I have a field, Count, which is adding up to several thousand. I don't care that it is 74,743, though. I just want to see 78K. How can I do this?

Tags (3)
0 Karma
1 Solution

aweitzman
Motivator

This ought to get what you want:

...your search... | eval k=round(count/1000) | eval output=tostring(k)."K"

View solution in original post

aweitzman
Motivator

This ought to get what you want:

...your search... | eval k=round(count/1000) | eval output=tostring(k)."K"

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 ...