Splunk Search

Count is different for a timespan when additional time is in the span

kulo
Engager

I have a search statement as follows

index=test1 sourcetype=test1 |join type=left filed [search index=test2] | table _time filed filed1 | timechart span=d count
I have a count of 1000 when I choose the time for the day,
When I choose the time for two days, the results obtained with the choice of time for the day count results are not the same
I do not know how to solve this problem,
I hope you can help me solve the problem,
tk

0 Karma

cmerriman
Super Champion

are you getting any type of warning in the job inspector for your subsearch when doing more than one day? or even just one day? subsearches have limitations. By default, they can only run for 60 seconds and/or bring back 10,000 results. I'm not sure if you stripped out anything in your subsearch for simplicity sake, but just searching an index could bring back a lot of lines. if you're only trying to join filed, perhaps try search index=test2|stats count by filed|fields - count

0 Karma
Get Updates on the Splunk Community!

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

Splunk New Course Releases for a Changing World

Every day, the world feels like it’s moving faster with new technological breakthroughs, AI innovation, and ...