Yeah,
thank you so much. Your answer was very helpful. But I did not need the streamstats command. To solve my problem I take this one:
my base search giving _time,diff,Code | eval ID=case(isnull(diff),1,diff>0.3,1,1=1,0) | accum ID
So every time "diff" is greater than 0.3 "ID" will increase by one. Your given code calculate the difference between the "diff" fields which I do not need in this example.
... View more