Are cached page hits reflected on origin server logs?

Hi, I am using a Cache Everything rule. When a user accesses a page that happens to be cached by Cloudflare, is that reflected on my origin server logs?

This article suggests that perhaps they are: https://support.cloudflare.com/hc/en-us/articles/200170786-Why-do-my-server-logs-show-Cloudflare-s-IPs-using-Cloudflare-

It says:

When a site is proxied through Cloudflare, your origin web server access log records a Cloudflare IP address for each incoming request by default.

My origin server logs already show origin real visitor IPs. I am a Pro customer, so no Cloudflare Logs for me.

That’s two separate issues:

  1. Any request that does actually hit your server will come from a Cloudflare IP address due to the proxying.
  2. But a request that is cached does not hit your server, so it won’t show up in the logs.
2 Likes

So my only options to monitor traffic are Google Analytics, a similar Javascript solution or even a Cloudflare Worker?

Correct. Those solutions will use a third party to log visits.

2 Likes

This topic was automatically closed after 14 days. New replies are no longer allowed.