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!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...