Hi @manjunathmeti , Thanks for your time. I combined both commands and it worked when i try for one transaction id's: index=abc sourcetype=def transaction_id=123456789 | stats count by _time, direction, pacs, transaction_id | streamstats range(_time) as TotalDiff | streamstats window=2 range(_time) as SingleDiff | streamstats count by transaction_id | where count IN(3, 4) | eval diff_2_3=if(count=3, SingleDiff, ""), diff_4_1=if(count=4, TotalDiff, "") | fields - count SingleDiff, TotalDiff | stats latest(_time) as _time max(*) as * by transaction_id For single transaction_id above command is working as expected But when I give transaction_id=*, I am getting wrong difference.. Any suggestions how to fix it?
... View more