Splunk Search

Splunk REST Query Returns No Data for stats

chrisboy68
Contributor

Hi,

Given the below search:

 

 

index="my_index" source="mysource"  _index_earliest=-1h 
|  rex field=_raw "\:\sPT(?P<respt>\d+\.\d+)" 
| fields response_time_ms respt| convert num(respt) as response_time_ms 
| eval response_time_ms = response_time_ms*1000  
| stats exactperc95(response_time_ms) as myPercent

 

 

Works fine in the UI, but when I try to execute through the API i get no data back and an obscure message.

 

 

 myPercent Specified field(s) missing from results: 'response_time_ms' myPercent 

 

 

 

Can't figure out what is going on, I have listed the field in "rf" with no luck. I do have search API working for other info, so I know credentials and my POST is accurate. Is there a limitation on stats?

Thanks

 

Chris

Labels (2)
0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...