if you go under your worker, logs ->
if you go under your worker, logs -> real-time logs, you can tail and see the request url
26 Replies
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
That's not what I was saying, I was saying tail (just for rn) and see the request url most requests are going through
I'm almost positive that Traffic Analytics is only for traffic going through the apex, if that makes sense.Traffic Analytics are for all proxied traffic that go through your zone If you tail, you can see if requests are going through the workers.dev, or the site you think
But, then, how would I set up actions for violations? For example, if I get DDoS'ed, I don't want to send 3 billion requests to my database to let the user know that they've exceeded their rate limits. 🤔 How do I even handle it? I can't just sit there and monitor the Tail all the time.for that, writing to Analytics Engine might be your solution there. It's pretty cheap and you can run queries off it
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
yea that's been around forever, super limited though
I did forget about its existence
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
honestly it could just be messed up, that tab has other issues, but again this goes back to the same tailing thing: I do not think the requests for your worker are actually going through your website, even though you said you've added a custom domain there. That's why I was saying: tail and look at the request url
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
can you just tail and say what the request url you see for most requests is?
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
none of that should matter, requests are requests
when you tail, you see the url for the request
analytics are going to that zone, the one shown
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
and if you tail, that's the url you see in all of the events?
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
that'd do it, yea as long as you're sending them to the route/custom domain on the zone, should be in requests
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
If you're want them to be globally consistent you'd want to use a Durable Object over the rate limiting solution anyway, that just means you can't easily see the per location rl. You could still see 429 responses and such thouhg
I'm not sure if that's true though, if you go to your Pro zone, and you go to Analytics & Logs -> Traffic, do you not see the Data center selector?
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
no those analytics are super limited
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
why not just push to AE and then query it?
You don't need a queue/queue customer or tail worker for that
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
it is, it's just cheap https://developers.cloudflare.com/analytics/analytics-engine/pricing/
Cloudflare Docs
Workers Analytics Engine — Pricing · Cloudflare Analytics docs
Workers Analytics Engine is priced based on two metrics — data points written, and read queries.
Points written:
10 million included per month
(+$0.25 per additional million)
Free gets 100k per day free writes
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View