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!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...