Simplify gathering metrics from state machine logs