Logs (2)
Last updated Oct 2, 2026 Use Logs to query structured events from supported Cloudflare products and services. Filter by time range and field values, then chart or inspect matching events.
You can use Logs to:
- Inspect HTTP requests and security actions
- Debug errors in Workers and Containers
- Audit R2 bucket access and operations
- Investigate AI Gateway errors, latency, token usage, and costs
- Query Zero Trust and network events

Choose a dataset
Open the dataset selector to search available datasets, including HTTP requests, security events, Workers, Containers, R2, AI Gateway, and Issues. For domain-scoped datasets, select one domain or all domains.
Available fields and retention periods vary by dataset, and some datasets must be turned on in their source product.

Narrow the results
Use the field browser to search field names or browse categories. To create a filter, select a field, operator, and value.
You can also enter a query directly, either in the filter query language or as SQL against the selected dataset. The built-in reference covers field queries, comparison operators, functions, Boolean logic, examples, and keyboard shortcuts. To inspect one request, filter on its Ray ID.
Select a preset time range, enter a relative range, or select calendar dates. Results show the returned row count and query duration.

Visualize results
Create a visualization from a field, describe the chart you want in plain language, or configure one from scratch. Group results by one or more fields, or add, remove, and reorder custom series with separate labels, metrics, and filters. When Logs detects an anomaly in a series, select it to narrow the results to the affected time range and investigate.
Available chart types include:
- Single value: Stat and Percentage
- Time series: Timeseries, Bar Chart, and Stacked Area
- Categories: Categorical Bar, Horizontal Bar, Vertical Bar, Doughnut Chart, and Top List
- Geospatial and flow: Choropleth Country Map, Proportional Symbol Map, and Sankey Diagram
- Tabular data: Table
Use automatic interval selection or select an interval from one minute to one day. Resize the visualization area, duplicate or remove a chart, and add the chart to a custom dashboard.

Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/observability/logs/#page","headline":"Logs","description":"Query and visualize logs from supported Cloudflare products.","url":"https://developers.cloudflare.com/observability/logs/","inLanguage":"en","image":"https://developers.cloudflare.com/observability/logs/og.png?v=4631949cc5d8bb0c","dateModified":"2026-10-02","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Review scope, size, and retention for supported Logs datasets. title: Datasets image: https://developers.cloudflare.com/observability/logs/datasets/og.png?v=d09fd91e35ee57db
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/observability/llms.txt
Use this file to discover all available pages before exploring further.
