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!

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...