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!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

New Release | Splunk Cloud Platform 10.1.2507

Hello Splunk Community!We are thrilled to announce the General Availability of Splunk Cloud Platform 10.1.2507 ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...