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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...