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
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Chaika
ChaikaOP•5mo ago
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
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Chaika
ChaikaOP•5mo ago
yea that's been around forever, super limited though I did forget about its existence
Unknown User
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Chaika
ChaikaOP•5mo ago
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
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Chaika
ChaikaOP•5mo ago
can you just tail and say what the request url you see for most requests is?
Unknown User
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Chaika
ChaikaOP•5mo ago
none of that should matter, requests are requests
Chaika
ChaikaOP•5mo ago
when you tail, you see the url for the request analytics are going to that zone, the one shown
No description
Unknown User
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Chaika
ChaikaOP•5mo ago
and if you tail, that's the url you see in all of the events?
Unknown User
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Chaika
ChaikaOP•5mo ago
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
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Chaika
ChaikaOP•5mo ago
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?
Chaika
ChaikaOP•5mo ago
No description
Unknown User
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Chaika
ChaikaOP•5mo ago
no those analytics are super limited
Unknown User
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Chaika
ChaikaOP•5mo ago
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
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Chaika
ChaikaOP•5mo ago
Cloudflare Docs
Workers Analytics Engine — Pricing · Cloudflare Analytics docs
Workers Analytics Engine is priced based on two metrics — data points written, and read queries.
Chaika
ChaikaOP•5mo ago
Points written: 10 million included per month (+$0.25 per additional million) Free gets 100k per day free writes
Unknown User
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server