Design streaming error-log counting with moving average | Amazon