Sorry maybe I was no clear enough.
The stats I put there was to help you get some more information than just what you had with dedup (which gave you information only from one event per (source,host) pair).
I think you have two paths here. Either you want to see the Log_Time, Index_Time for all the events, and you can do the following (which is messy as it shows you all the events:
index=* OR index=_
| convert ctime(_indextime) AS "Index Time"
| convert ctime(_time) AS "Log Time"
| eval lag=_time-_indextime
| search lag>1000 OR lag<-1000
| table "Log Time","Index Time",lag,index,host,source
What I would do is make some stats on top of that lag,
index=* OR index=_
| convert ctime(_indextime) AS "Index Time"
| convert ctime(_time) AS "Log Time"
| eval lag=_time-_indextime
| bucket _time
| stats avg(lag) as lag by source,host, "Index Time"
| search lag>1000 OR lag<-1000
| table "Index Time",lag,index,host,source
I believe this last one gives you the information you actually are looking for.
Let me know
... View more