Event and Log Management for Optimized Security and Performance