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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...