Worker requests does not match dashboard

I see Requests today 76,409 / 100,000 but checking the workers I don't see so many requests.
No description
27 Replies
Ricardo Viteri
Ricardo Viteri8mo ago
I usually use around 2500 requests per day, so something is very off
Chaika
Chaika8mo ago
That includes Workers & Pages. For Workers you can sort by Requests and see, for Pages you have to go to each and see the Function Metrics for prod/preview
Ricardo Viteri
Ricardo Viteri8mo ago
Correct still, I've never had so much traffic almost all workers are internal apps
Chaika
Chaika8mo ago
I would assume it is correct, haven't heard any case of it being wrong (although it can be a bit delayed), you just have to find them somewhere in the list. You checked all your Pages projects and such?
Ricardo Viteri
Ricardo Viteri8mo ago
pages too yes
Ricardo Viteri
Ricardo Viteri8mo ago
this is the only public facing app
No description
Ricardo Viteri
Ricardo Viteri8mo ago
found the app, this is an internal app. We've never had this happen.
No description
Ricardo Viteri
Ricardo Viteri8mo ago
No description
Ricardo Viteri
Ricardo Viteri8mo ago
this is yesterday
Chaika
Chaika8mo ago
What type of app is it? Normally spikey traffic patterns? If you have a Worker Custom Domain/Route on it attached to a pro or higher domain, you can get some better analytics out of it
Ricardo Viteri
Ricardo Viteri8mo ago
no it never spikes
Chaika
Chaika8mo ago
but it spiked today and yesterday? If you look out to the last week, any other times?
Ricardo Viteri
Ricardo Viteri8mo ago
only today I see yesterday was fine about 2k request per day today 74k
Chaika
Chaika8mo ago
This looks like "spikey" traffic to me, around the same time as the tons of requests today to me that kind of looks like legit traffic just based on the time frames matching up, it didn't happen off normal peak time, it is a worker consumed by an API or something that could call it a ton of times potentially?
Ricardo Viteri
Ricardo Viteri8mo ago
no, it is a sveltekit app so UI and making calls to a DB via graphql
Chaika
Chaika8mo ago
Requests go through a custom domain, or using the default workers.dev?
Ricardo Viteri
Ricardo Viteri8mo ago
custom domain
Chaika
Chaika8mo ago
Check Analytics from Domain? If it's Pro or higher you could really scope in and try to see where they came from
Ricardo Viteri
Ricardo Viteri8mo ago
I'm on the free plan
Ricardo Viteri
Ricardo Viteri8mo ago
No description
Chaika
Chaika8mo ago
I'd look at Requests, not unique
Ricardo Viteri
Ricardo Viteri8mo ago
No description
Ricardo Viteri
Ricardo Viteri8mo ago
I see the spike but why
Chaika
Chaika8mo ago
You could check Security -> Events to see if any were blocked and would give us any more info
Ricardo Viteri
Ricardo Viteri8mo ago
No description
Chaika
Chaika8mo ago
Hmm so they came through the Custom Domain, either not an attack or too small to be detected (75k requests isn't very many over ~3 hours, only a few requests/second. I think the trail mostly ends there then unless your Worker/origin behind the worker has other logs to look at, would need Pro to get more info on the requests. You could set up rules to try to prevent this -- assuming it is an attack - in the future, such as the free unmetered rate limiting and such. It looks like it kind of stopped against that worker, otherwise you could enable Under Attack Mode (or use a config rule to just challenge a specific subdomain) which would challenge every visitor and then you could get some info via Security Events: https://community.cloudflare.com/t/mitigating-an-http-ddos-attack-manually-with-cloudflare/302366
Ricardo Viteri
Ricardo Viteri8mo ago
okay, maybe it was an attack. I am going to check the login server to see the attempts to log in that app.
Want results from more Discord servers?
Add your server
More Posts