Splunk Search

Percentage correct utilization formula

splunkuseradmin
Path Finder

I have a search which gives me a list of calls.
Whereby taking only business days and hours in a week- I need to take out utilization for each number.

Thanks

0 Karma
1 Solution

adonio
Ultra Champion

Yes it is...

you can try it with fake values, for example:

| makeresults count=1
| eval active = 20
| eval inactive = 30
| eval utilization=round(active/(active+inactive)*100,2). "%"

play with the numbers, or use random function:

| makeresults count=1
| eval active = random()%200
| eval inactive = random()%300
| eval utilization=round(active/(active+inactive)*100,2). "%"

hope it helps

View solution in original post

0 Karma

adonio
Ultra Champion

Yes it is...

you can try it with fake values, for example:

| makeresults count=1
| eval active = 20
| eval inactive = 30
| eval utilization=round(active/(active+inactive)*100,2). "%"

play with the numbers, or use random function:

| makeresults count=1
| eval active = random()%200
| eval inactive = random()%300
| eval utilization=round(active/(active+inactive)*100,2). "%"

hope it helps

0 Karma
Get Updates on the Splunk Community!

How to Get Started with Splunk Data Management Pipeline Builders (Edge Processor & ...

If you want to gain full control over your growing data volumes, check out Splunk’s Data Management pipeline ...

Out of the Box to Up And Running - Streamlined Observability for Your Cloud ...

  Tech Talk Streamlined Observability for Your Cloud Environment Register    Out of the Box to Up And Running ...

Splunk Smartness with Brandon Sternfield | Episode 3

Hello and welcome to another episode of "Splunk Smartness," the interview series where we explore the power of ...