Compute stats at log