Skip to content

๐Ÿ“ƒ Ingests Cloudflare Logs to Azure Log Analytics Workspaces

License

Notifications You must be signed in to change notification settings

L480/cloudflare-log-analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

cloudflare-log-analytics

Ingests Cloudflare Logs to Azure Log Analytics Workspaces.

Azure Portal

This is a Cloudflare Tail Worker that sends Cloudflare Workers logs to Azure Log Analytics Workspaces/Azure Monitor Logs through the Logs Ingestion API in Azure Monitor.

Prerequisites

Setup

Azure

Cloudflare

Environment Variables

Variable name Description Example
ARM_TENANT_ID Azure tenant ID 40a009eb-76f8-4d32-bca3-893aaebd0f41
ARM_CLIENT_ID Client ID of Azure service principal cd96fd2a-8b49-4df0-bd0c-8d396d97c259
ARM_CLIENT_SECRET Client secret of Azure service principal fII8Q~FO.qbSmcpxpyZqfsbv.7nz46X4_4HutaHw
DCE_URL Data Collection Endpoint URL https://cloudflare-logging-asu8.westeurope-1.ingest.monitor.azure.com/dataCollectionRules/dcr-1e5cc3ed115842ecb647b43f4d8bafef/streams/Custom-CfLogging_CL?api-version=2023-01-01
DCR immutable ID is only visible in JSON view!

Sponsor this project