Splunk Search

Math function on stats count

anz999
Loves-to-Learn Lots

I would like to do some math operation of retrieved count of each values.

Eg: 318*5.5 + 418*2.5 + 54*5 + 83*2 and get the total from the resulted output(SS attached)

Query used:-

index=omi_qa host=DEFRNC* sourcetype=all_events_custom_attributes SEVERITY IN (CRITICAL,MAJOR,MINOR) OR (SEVERITY=WARNING AND APPLICATION=NNMi) | eval {idx} = elt
| stats latest(CLIP) as CLIP, values(UMN) as UMN by ID | lookup clipUMNs.csv UMN OUTPUTNEW Solution
| search CLIP != "NULL" AND CLIP != "TRUE"
| where Solution = "Escalation"

alt text

Tags (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Perhaps this will help.

index=omi_qa host=DEFRNC* sourcetype=all_events_custom_attributes SEVERITY IN (CRITICAL,MAJOR,MINOR) OR (SEVERITY=WARNING AND APPLICATION=NNMi) | eval {idx} = elt
| stats latest(CLIP) as CLIP, values(UMN) as UMN cout as Count by ID | lookup clipUMNs.csv UMN OUTPUTNEW Solution FTE
| search CLIP != "NULL" AND CLIP != "TRUE"
| where Solution = "Escalation"
| eval Product = Count * FTE
| addcoltotals labelfield= ID label="Grand Total" Product 
---
If this reply helps you, Karma would be appreciated.
0 Karma

anz999
Loves-to-Learn Lots

It comes from the lookup file. Field name is FTE

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Where do the multipliers (5.5. 2.5, 5, 2) come from?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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