Ok, I had to massage your posting somewhat to work with what I was looking for. I am aware of TSTATS but struggling to get it to work for the query that I am starting with ? Here is what I have working: index=anIndex earliest=-4d latest=now | eval recent=if(_time>(now()-129600 ),1,0) ```<--- No Logs in 1.5 Days ``` | stats max(_time) AS max_time count(eval(recent=1)) AS CurrentCount count(eval(recent=0)) AS HistoricalCount BY sourcetype host | where ( (CurrentCount < 1 AND HistoricalCount > 0) OR ( CurrentCount > 0 AND HistoricalCount < 1)) ```<--- Missing & New``` | eval status=case(CurrentCount > 0 AND HistoricalCount > 0, "OK", CurrentCount < 1 AND HistoricalCount > 0, "MISSING", CurrentCount > 0 AND HistoricalCount < 1, "NEW", 1=1,"Unknown" ) | eval lastTime=strftime(max_time, "%m/%d/%y %H:%M:%S") | sort sourcetype | rename status AS Status, host AS Host, sourcetype AS "Source Type", CurrentCount AS "Log Entries in 1.5 Days", HistoricalCount AS "Log Entries over 1.5 Days", lastTime AS "Last Log Entry" | table Status Host "Source Type" "Log Entries in 1.5 Days" "Log Entries over 1.5 Days" "Last Log Entry" Any help in getting it to work with TSTATS would be appreciated...
... View more