Describe how you would build a scalable logging infrastructure to ingest and analyze gigabytes of security events per second.