You seem to have removed the parsing of the slot - also, try using epoch times and not converting them to strings (as this is unnecessary) index="index1"
| search "slot"
| rex field=msg "VF\s+slot\s+(?<slot_number>\d+)"
| rex field=msg "(?<action>added|removed)"
| eval added_epoch=if(action="added",_time,null())
| eval removed_epoch=if(action="removed",_time,null())
| sort 0 _time
| streamstats max(added_epoch) as added_epoch latest(removed_epoch) as removed_epoch by host, slot_number
| eval downtime=if(isnotnull(added_epoch) AND isnotnull(removed_epoch), removed_epoch - added_epoch, 0)
... View more