Splunk Search

How to subtract values from two different fields but successive fields as shown below?

dinkarvidyarthy
New Member

group count SubTotal Desired_Field
WEEK1 9 36 36
WEEK2 1 36 27
WEEK3 3 36 26
WEEK4 7 36 23
WEEK5 2 36 16
WEEK6 1 36 14
WEEK7 2 36 13
WEEK8 3 36 11
WEEK9 2 36 8
WEEK10 1 36 6
WEEK11 1 36 5
WEEK12 4 36 1

I have Group, count and SubTotal with me. I want to get the values as shown in Desired_Field? Please help with the query. Thanks

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

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

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...