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!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...