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