(Not the principal engineer but I can try to respond)<p>We forked nginx (just like Cloudflare) and modified it to log stats that we need. The logs are forwarded to a Logstash, then parsed using ElasticSearch.