Setting up Log File Analysis with the Cloudflare Worker in Conductor Website Monitoring is very simple! Follow the steps outlined below to enable Log File Analysis in Conductor Website Monitoring, and set up the Cloudflare integration.
Setting up the Log File Analysis
The process of configuring the Log File Analysis consists of two phases:
- Enabling the Log File Analysis feature in Conductor Website Monitoring
- Setting up the Cloudflare Worker integration
1. Enabling the Log File Analysis feature in Conductor Website Monitoring
If you navigate to the Account and then Websites section in Conductor Website Monitoring, you can easily filter and see which of the websites you are monitoring in Conductor Website Monitoring are on Cloudflare:
From there, just follow the steps outlined below to enable the Log File Analysis on the wanted website:
- Click any website that is running on Cloudflare in the Websites section ↗️ of Conductor Website Monitoring.
- Click Log File Analysis in the Settings section.
- Enable the Log File Analysis toggle.
2. Setting up the Cloudflare Worker integration
To connect Conductor Website Monitoring to Cloudflare, you will need to create an API token in your Cloudflare account.
Using this token, Conductor Website Monitoring will automatically install its Cloudflare Worker for this website without any additional configuration required from your side. Using the Cloudflare Worker Conductor Website Monitoring will be able to detect and track visits of search engines to this website.
Creating a Cloudflare token
Follow these steps to create a Cloudflare token:
- Go to your API tokens in your Cloudflare account by logging in to your Cloudflare Dashboard and following the path User Profile > API Tokens.
-
.On the API tokens screen, click Create token.
- Click Get started in the Custom token section at the bottom of the screen.
-
To let Conductor Website Monitoring automatically install the Cloudflare Worker, set the following permissions for the API token:
- On Account-level: Workers Scripts: Edit
- On Zone-level: Workers Routes: Edit
- On Zone-level: Zone: Read
- Include relevant Account and Zone. Make sure to include the appropriate Account and Zone for the websites you want to enable the Log File Analysis feature for.
If you enabled Log File Analysis for a website in your account, and you want to enable it on another website that is in the same Cloudflare account, the Cloudflare token that you are generating for the new website needs to include relevant Account and Zone for both websites. This is due to the fact that currently only one Cloudflare Worker can be installed in a single Cloudflare account, which means that the generated token always needs to have permissions for all websites on which you want to use the Log File Analysis. - Optional - Define the validity of the token. Important: Immediately after the Cloudflare Worker is installed, Conductor Website Monitoring will discard the API token. However, you can optionally also limit the validity of the token on the Cloudflare side, e.g. by setting the "Start Date" to today and "End Date" to tomorrow.
Enter the generated token to Conductor Website Monitoring
Once you create the API token following the steps above, enter it to the modal for connecting Cloudflare in Conductor Website Monitoring:
Afterwards, Conductor Website Monitoring will automatically install the Cloudflare Worker and start tracking the search engine traffic on this website.
This is a highlight box. The borders that appear in the editor and this explainer will not appear in the published article. Use the Title and Body below for examples, best practices, or other information you'd like to call out.
End of Highlight box
Reinstalling the Cloudflare Worker
If there is a need to reinstall the Cloudflare Worker on any of your websites, you can do it in the following way:
- Generate a new Cloudflare token following the steps above.
- Click on the website on which you want to reinstall the Cloudflare Worker in the Websites section ↗️ of Conductor Website Monitoring.
- Click on Log File Analysis in Settings, click Edit in the Log Sources block and then reinstall
- Enter the new token and click install.
Disabling Log File Analysis
Same as with enabling Log File Analysis, you need to disable the feature in Conductor Website Monitoring and then remove the Cloudflare Worker.
Disabling Log File Analysis in Conductor Website Monitoring
- Click on the website on which you want to disable Log File Analysis in the Websites section ↗️ of Conductor Website Monitoring.
- Click Log File Analysis in the Settings section.
- Disable the Log File Analysis toggle.
Removing the Cloudflare Worker
If you have disabled the Log File Analysis feature, you still need to uninstall the Cloudflare Worker in your Cloudflare account.
The reason why Conductor Website Monitoring doesn’t do this automatically is that after the Cloudflare Worker is installed, for security reasons Conductor Website Monitoring forgets the API token. Therefore, Conductor Website Monitoring has no way of uninstalling the Cloudflare Worker.
Security FAQs
For the most common security related questions about Conductor Website Monitoring's Log File Analysis, refer to the FAQ section in the Log File Analysis support article