Write a Python function to process a stream of log data and identify anomalies based on a moving average.