Real-time anomaly detection in logs using rule mining and complex event processing at scale