Splunk Search

How to calculate SLA?

Sekhar
Explorer

my query below

(Index=x source=xtype valid) or (index=y source= ytype  passed) | eval which=if(match(_raw, " valid"),"valid", "passed") | stats values( which) as msg by manid |  stats count(eval(msg=" valid")) as total_ count count(eval(msg= "passed"))   

getting  out like total count 54 respons count 58

But i want check this condition too 

Eval msgconur = mvcount(msg) | where >1 

Need to check duration time > 30 count duration time <30 count 

 

Labels (1)
0 Karma

Sekhar
Explorer

My SLA calculating  like this 100-(count of duration<30/total count)*100

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

| stats values( which) as msg count(eval(duration>30)) as gt30 count(eval(duration<30) as lt30 by manid | where mvcount(msg) > 1

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...