Hi,
I'm using a search like this for a timerange of one single day:
sourcetype=A
| lookup lookup.csv id OUTPUT timestamp
| bucket span=1d _time
| eval flag=if(timestamp<=_time, "true", "false")
| stats dc(id) AS ids by flag
true -> 50
false -> 10
I tried out another way to verify the distinct count of ids for flag=true, but the result is different:
sourcetype=A
| lookup lookup.csv id OUTPUT timestamp
| bucket span=1d _time
| search timestamp<=_time
| stats dc(id) AS ids
result -> 60
I can't find the reason for different results here.
Best regards
Heinz
edit:
The "search" command in the second example seems to be the reason. The result is 50 by using "where timestamp<=_time".
Can somebody tell me the difference of search and where here?
... View more