Dashboards & Visualizations

Division in Dashboard using stats count?

SimonSchoppel
Explorer

Hello,

in my dashboard, I use the "stats count" function to show the number of results for a particular search.
Now I want to divide this number by 3 and display the result instead. How to do this?

 

Thank you for your Help!

 

Labels (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @SimonSchoppel,

you have to use the eval command at the end of your search:

<your_search>
| stats count
| eval count=count/3

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @SimonSchoppel,

you have to use the eval command at the end of your search:

<your_search>
| stats count
| eval count=count/3

Ciao.

Giuseppe

SimonSchoppel
Explorer

Thank you very much!!

0 Karma
Get Updates on the Splunk Community!

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...

Get ready to show some Splunk Certification swagger at .conf24!

Dive into the deep end of data by earning a Splunk Certification at .conf24. We're enticing you again this ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Now On-Demand Join us to learn more about how you can leverage Service Level Objectives (SLOs) and the new ...