I created a simple worker that simply log requests data and send them into logdna.com(but you can easily send it to whoever you want ofcourse)
my motive behind it is to help me better protect against layer 7 attacks, so in a time of attack I will simply send all the request data into the service(because probably my servers will be down) and collect all the info I need about the attack that I can use to create rules in cf-firewall and to better modify the rate limiting.
the only way to get logs otherwise which I know of is to upgrade into enterprise plan
- user agent
I field tested it for 1 day with 100% success rate
would love to get feedback
you can see here the code and simple instructions about the parameters