<div dir="ltr">What is the best way to get real time or near real time request counts per url? I want to maintain this data in a database, redis or something else that my app can use.<div><br></div><div>I have considered:</div>
<div><br></div><div>- writing something to parse the log generated by varnishncsa</div><div><br></div><div>- writing a replacement for varnishncsa that reads the shared memory logs and does something else instead of writing a file</div>
<div><br></div><div>- using a varnish module to talk to redis or memcache <br><div style><br></div></div><div style>- some VCL hack to pass data through to the backend</div><div style><br></div></div>