Cloudflare

Cloudflare Enterprise customers have access to Logpush service which allows you to forward logs to cloud service providers like AWS. In this tutorial you will find all steps to send logs to Coralogix.

Prerequisites

AWS S3 bucket – Follow the tutorial to send logs from S3 bucket to Coralogix: https://coralogix.com/integrations/data-collection-s3/

Cloudflare Configuration

To enable the Clouflare Logpush service:

  1. Log in to the Cloudflare dashboard
  2. Ensure the Enterprise domain you want to use with Logpush is selected
  3. Select the Analytics app in the top menu
  4. Select the Logs section in the secondary menu
  5. Select Connect a service. A modal window opens where you will need to complete several steps.
  6. Under Select service, pick your Amazon S3 and click Next.
  7. Enter or select the following:
    • Bucket path
    • Daily subfolders
    • Bucket region
  8. Copy the policy from the field below “Grant Cloudflare access to upload files to your bucket”
  9. In new window go to S3 > your bucket name > Permissions > Bucket Policy
  10. Click on the Edit button at the Bucket Policy.
  11. Paste the copied policy and save changes.
  12. In the Cloudflare dashboard, click Validate access.
  13. Follow the on-screen instructions to enter the Ownership token (included in a file Cloudflare sends to your Amazon S3 bucket).

    Open a file with token on your Amazon S3 bucket and paste the token into Ownership token field:
  14. Click the “Prove ownership” button.
  15. Next in the Customize log screen, select the data set in which you’re interested (currently HTTP requests or Spectrum events).

    You can keep the default fields to include in your log or make changes. You can add or remove fields at a later time by modifying your settings in Logs > Logpush (select the wrench icon).
  16. To finish enabling Logpush, click Save and Start Pushing

Once connected, Cloudflare lists the provider you just configured under Logs > Logpush. This is where you can make changes or remove the provider.

If all steps were executed properly, you should see files in your S3 bucket and also in Coralogix.

Contact us on via chat if you would like us to add Cloudflare Dashboards.