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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...