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!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...