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!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

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

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