Cloudflare monitoring/alerting with Microsoft Application Insights


#1

We are using Cloudflare service and we have situations when Cloudflare can’t reach the origin and returns an error code to the site visitor because the request to origin timed out.

Such errors might not be registered with Application Insights. We need a way to get an alert when this is happening, and we are trying to figure out how to do this in Cloudflare.

Could you share your thoughts if there any of CF’s feature that we may need to look at?

Thanks for your help in advance.


#2

Cloudflare doesn’t directly offer this as far as I know, but it’s probably possible with a CF Workers script (but that may add unnecessary overhead).

You could also look into Enterprise Log Share so that you can ingest Cloudflare’s datacenter logs, then analyze those logs on Azure and look for any 5xx errors.


#3

Thanks for your response @Judge. Do you know if we can pull the instantaneous logs via Enterprise Log Share functionality so that we get the alert on Azure as it happens on the edge servers? Or you think there will be a delay between when the 5xx errors happen and the time it is available to be pulled via Enterprise Log Share.


#4

Not an enterprise customer, so it’s hard to say. If you’re not already an enterprise customer, you can ask Sales about this, and if you are, you can ask your dedicated Cloudflare resource.


#5

Thanks again. We are currently enterprise customers of CF and found that there is also another option, LogPush which can be used to push logs from CF side to either Google Cloud Storage or Amazon S3 storage. But since we would want to integrate those logs into Azure, we may want to use the Enterprise Log Share Pull APIs to pull the data and then analyze the data in Azure.