Splunk Enterprise

Custom query

Santosh2
Path Finder

from the below query,  i am running for 2 to 3 and posted the output and ran again same query from 3 to 4 and posted the output.
i want a query where i can compare pervious hour(2 to 3 data) with (3 to 4) data  and i want to calculate the difference percentage 

|mstats sum(transaction) as Trans where index=host-metrics service=login application IN(app1, app2, app3, app4) span=1h by application

output:

02:00 to 03:00 hours data

_timeapplicationTrans
2022-01-22 02:00

app1

3456.000000
2022-01-22 02:00app25632.000000
2022-01-22 02:00app35643.000000
2022-01-22 02:00app416543.00000

 

03:00 to 04:00 hours data output:

_timeapplicationTrans
2022-01-22 03:00app18753.000000
2022-01-22 03:00app2342.000000
2022-01-22 03:00app387653.000000
2022-01-22 03:00app4

8912.00000

Labels (2)
0 Karma

Santosh2
Path Finder

can anyone help on this??

0 Karma
Get Updates on the Splunk Community!

New Case Study: How LSU’s Student-Powered SOCs and Splunk Are Shaping the Future of ...

Louisiana State University (LSU) is shaping the next generation of cybersecurity professionals through its ...

Splunk and Fraud

Join us on November 13 at 11 am PT / 2 pm ET!Join us for an insightful webinar where we delve into the ...

Build Your First SPL2 App!

Watch the recording now!.Do you want to SPL™, too? SPL2, Splunk's next-generation data search and preparation ...