Splunk Cloud Platform

Not getting proper count

VamshiBavu
Engager

I am trying to get the count of the hit to the particular api and based on the field called execution-time  I am calculating SLA ,

Somehow I am able to see the no of requests coming to the api but not able to get the SLA count using below query,

Can some one help me where I am doing wrong in the below query,

 

index=* uri=validate | eval SLA=1000| stats count as total_calls count(eval(execution-time < SLA)) as sla_compliant_count

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Field names with special characters such as hyphens often need to be quoted with single quotes.

index=* uri=validate | eval SLA=1000| stats count as total_calls count(eval('execution-time' < SLA)) as sla_compliant_count
0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...