Splunk Search

Why is my Splunk query not working for certain time range?

ram_splunk
New Member

i have a query to pull out stats and counts based on incoming applictiond and request path 

it gave me stats when i tried to pull for month jan,feb but its not giving me back data for March till now 

is it issue with query or something with splunk tool 

 

below is my search query pattern 

mysearch query | bucket _time span=day| stats count by attributes.headers.client_id, attributes.requestPath,_time | spath input=log
Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @ram_splunk,

the first thing you should do is analyze if there are changes in logging starting from march.

I supposed that you already checked that the data from march are present.

Then I don't like to have the spath command after the stats command, usually it's used before.

Then sometimes I encountered problems using fields with the dot in the field name, please try to rename them before stats command.

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

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

What's New in Splunk Observability Cloud and Splunk AppDynamics - May 2025

This month, we’re delivering several new innovations in Splunk Observability Cloud and Splunk AppDynamics ...