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
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!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...