Client Diagnostic Logs, Tunnel Connectivity Pre-Checks, and Troubleshooting
How to collect warp-diag and cloudflared diagnostic reports, run connectivity pre-checks, and use Cloudflare One troubleshooting tools.
This page summarizes Cloudflare documentation on diagnosing Cloudflare One Client (formerly WARP) and Cloudflare Tunnel (cloudflared) connectivity problems. The same workflow applies whether an end user cannot join Zero Trust, a tunnel fails at startup, or IT needs logs for Cloudflare Support.
When to use which diagnostic tool
Section titled “When to use which diagnostic tool”| Situation | Tool or command | Output |
|---|---|---|
| Desktop Cloudflare One Client issues | warp-diag or DEX remote capture |
warp-debugging-info-<date>-<time>.zip |
| Public Wi‑Fi / captive portal problems (Windows, macOS) | warp-diag captive-portal or GUI Collect Captive Portal Diag |
warp-captive-portal-diag-<date>-<time>.zip |
cloudflared tunnel on a host, container, or pod |
cloudflared tunnel diag |
cloudflared-diag-YYYY-MM-DDThh-mm-ss.zip |
Firewall or DNS before installing cloudflared |
Manual checks or cloudflared tunnel diag (2026.5.2+) |
CLI table: Pass / Warn / Fail |
| WARP Connector just installed | Ping the connector’s LAN IP | ICMP reachability (2025.10.186.0+) |
warp-diag uploaded via dashboard |
DEX View Device Diag | AI summary and detection events |
Cloudflare One Client: collect warp-diag diagnostic logs
Section titled “Cloudflare One Client: collect warp-diag diagnostic logs”You can collect client diagnostic logs through the Cloudflare One dashboard (DEX remote capture) or the warp-diag command-line tool. Both paths are described in the Cloudflare One Client troubleshooting guide and Diagnostic logs.
warp-diag: how to export logs on Windows, macOS, and Linux
Section titled “warp-diag: how to export logs on Windows, macOS, and Linux”On desktop systems, running warp-diag packages logs, configuration, and connectivity data from the installed client.
-
Open a terminal (macOS/Linux) or Command Prompt / PowerShell (Windows).
-
Run:
warp-diag -
Collect the archive:
- Windows and macOS:
warp-debugging-info-<date>-<time>.zipon the desktop. - Linux: the same filename in the directory where you ran the command (see Linux get started).
- Windows and macOS:
warp-diag is a command-line diagnostics tool that collects logs, configuration details, and connectivity data from the Cloudflare One Client to help troubleshoot issues.
— Cloudflare, Cloudflare One Client
For failed MDM-assigned client versions, the archive’s updater/ directory holds per-attempt installer logs and an update history summary—useful when sharing evidence with Support (Client version assignments).
Key files inside warp-debugging-info: status, settings, and daemon.log
Section titled “Key files inside warp-debugging-info: status, settings, and daemon.log”Client diagnostic logs reflect the final configuration after MDM and local policies are applied. Cloudflare’s troubleshooting flow starts with three files (Review key files):
warp-status.txt— connection state when diagnostics ran. A healthy session showsOk(Connected).warp-settings.txt— merged policy: mode, split tunnel lists, profile ID, captive portal timeout, and related fields. The same data is available live viawarp-cli settings.daemon.log— detailed daemon activity; Cloudflare calls this the most useful debug log for client issues (Diagnostic logs).
If the GUI shows an error code, map it using Client errors (resolution steps there include collecting warp-diag).
Extra debug logging with warp-cli debug extra
Section titled “Extra debug logging with warp-cli debug extra”From client version 2026.5.0, you can enable short-lived deep logging before another warp-diag:
warp-cli debug extra startCollection stops after 10 minutes unless you run warp-cli debug extra stop. Extra mode can add packet captures, QLog files for MASQUE, one-shot connectivity checks, and traceroutes to resolver and tunnel edge IPs (Extra debug logging).
Log rotation, retention, and Linux journal behavior
Section titled “Log rotation, retention, and Linux journal behavior”Individual client log files are capped at 10 MB, 24 hours age, and up to four rotated versions (for example daemon.log through daemon.3.log). Archives may therefore span up to ~96 hours of low-volume logging, or much less under heavy errors—always check timestamps at the end of each log file (Log retention window).
On Linux, daemon output also goes to systemd; recent service lines are available with journalctl -u warp-svc (Run Mesh on Linux).
Captive portal logs: warp-diag captive-portal (Windows and macOS)
Section titled “Captive portal logs: warp-diag captive-portal (Windows and macOS)”Captive portal diagnostics are for hotspot/login-page failures on corporate devices. They are aimed at Cloudflare Support tickets, collected by IT from the affected user (Get captive portal logs).
| System | Minimum client version | Notes |
|---|---|---|
| Windows | 2025.4.589.1 | CLI or GUI Collect Captive Portal Diag |
| macOS | 2025.4.589.1 | Automatically join this network must stay enabled on the problem Wi‑Fi |
| Linux, iOS, Android, ChromeOS | Not supported in cluster material | Use general warp-diag / mobile diagnostics instead |
CLI flow:
warp-diag captive-portalConfirm the interface and SSID when prompted. The client writes warp-captive-portal-diag-<date>-<time>.zip to the desktop.
Diagnostics analyzer (beta): parse warp-diag from the dashboard
Section titled “Diagnostics analyzer (beta): parse warp-diag from the dashboard”The diagnostics analyzer is available only for logs collected via the dashboard (DEX remote captures), not for arbitrary local ZIP files unless uploaded through that path (Diagnostics analyzer (beta)).
The diagnostics analyzer highlights what Cloudflare determines to be the most important detection events in a warp-diag log.
— Cloudflare, Client packet capture
Access it under DEX → Remote captures, then View Device Diag on a capture. The Overview tab shows an AI-generated summary, detection events (with severity Critical, Warning, or No detection), and device metadata. A separate changelog describes the WARP diagnostic analyzer with similar goals—impact summary, notable events, and linked remediation articles (Cloudflare One WARP Diagnostic AI Analyzer).
For Access and Gateway block logs (not client warp-diag), Cloudy can summarize individual log rows in the Cloudflare One dashboard (Cloudy summaries for Access and Gateway Logs).
Cloudflare Tunnel: connectivity pre-checks at startup
Section titled “Cloudflare Tunnel: connectivity pre-checks at startup”From cloudflared 2026.5.2, connectivity validation runs automatically on every cloudflared tunnel run and on cloudflared tunnel diag (Cloudflare Tunnel now runs connectivity pre-checks at startup).
Starting with cloudflared version 2026.5.2, Cloudflare Tunnel automates the entire connectivity pre-checks workflow directly inside the binary. Previously, customers had to install dig and netcat and run those commands by hand to verify their environment.
— Cloudflare, Connectivity pre-checks
What pre-checks test: DNS, port 7844, and management API
Section titled “What pre-checks test: DNS, port 7844, and management API”Each run checks:
- DNS —
region1.v2.argotunnel.comandregion2.v2.argotunnel.comresolve to Cloudflare IPs. - Transport — outbound UDP (QUIC) and TCP (HTTP/2) to port 7844.
- Management API — outbound TCP/443 to
api.cloudflare.com(software updates).
Results appear in a CLI table as Pass, Warn, or Fail. A Warn on the management API means updates may not work but the tunnel can still start; Fail on DNS or on both UDP and TCP for 7844 causes early exit instead of endless dial errors (changelog).
If cloudflared is not installed yet, the same checks can be run manually following Connectivity pre-checks.
WARP Connector reachability: ping the LAN IP
Section titled “WARP Connector reachability: ping the LAN IP”From 2025.10.186.0, WARP Connector responds to traffic addressed to its own LAN IP, so a simple ping right after install confirms on-prem reachability before testing downstream apps (Verify WARP Connector connectivity with a simple ping).
Cloudflare Tunnel: cloudflared tunnel diag reports
Section titled “Cloudflare Tunnel: cloudflared tunnel diag reports”From cloudflared 2024.12.2, a diagnostic report collects data from one local cloudflared instance into a ZIP archive (Troubleshoot tunnels with diagnostic logs).
Host, Docker, and Kubernetes: how to run cloudflared tunnel diag
Section titled “Host, Docker, and Kubernetes: how to run cloudflared tunnel diag”Bare metal / VM (Tunnel diagnostic logs):
cloudflared tunnel diagIf several instances share a host, target one metrics endpoint:
cloudflared tunnel diag --metrics 127.0.0.1:20241On Linux, grant traceroute capabilities for full network files:
sudo setcap cap_net_raw+ep /usr/bin/tracerouteDocker: expose the container metrics port (often forwarded to host 20241), verify curl localhost:20241/diag/tunnel, then:
cloudflared tunnel diag --metrics localhost:20241 --diag-container-id=<containerID>Kubernetes: kubectl port-forward a local port in 20241–20245 to the pod metrics port, then cloudflared tunnel diag --diag-pod-id=<podID> (add --diag-container-id if cloudflared is not the first container).
The archive includes tunnel configuration, cloudflared_logs.txt, metrics, tunnelstate.json, pprof heaps, and traceroute output from the diagnosing host (Observability — Diagnostic file contents).
For verbose runtime logging without a full diag bundle, run with --loglevel debug and optionally --logfile (Troubleshooting — Collect debug logs).
Common mistakes when collecting diagnostics
Section titled “Common mistakes when collecting diagnostics”- Running
warp-diagwithout reproducing the issue, sodaemon.loglacks relevant errors. - Disabling Automatically join this network on macOS before captive portal diagnostics, which yields empty captures (Captive portals).
- Expecting the diagnostics analyzer on a locally generated ZIP that was never ingested through DEX remote capture.
- Diagnosing the wrong
cloudflaredinstance when multiple tunnels share one host (omit--metrics/ container / pod selectors). - Reading rotated logs (
daemon.2.log) while ignoring currentdaemon.logunless investigating older incidents. - Enabling extra debug on Windows without accounting for large trace files.
Escalation: what to attach to Cloudflare Support
Section titled “Escalation: what to attach to Cloudflare Support”Contact Cloudflare Support specifies:
- Cloudflare One Client: run
warp-diagon the affected device and attach the.zip. - Cloudflare Tunnel: run
cloudflared tunnel diagand provide the generated report.
Linux users can also file feedback with sudo warp-diag feedback (Linux — Feedback).
How to check this on your site
Section titled “How to check this on your site”- On a test desktop, reproduce a client issue, run
warp-diag, and confirmwarp-status.txtandwarp-settings.txtmatch expected policy using Diagnostic logs. - Upgrade
cloudflaredto 2026.5.2 or later and runcloudflared tunnel diag; confirm DNS and port 7844 checks per Connectivity pre-checks. - On a WARP Connector host (2025.10.186.0+), ping its LAN IP after install (Verify WARP Connector connectivity).
- If you use DEX, upload or capture a remote
warp-diagand open View Device Diag to validate analyzer output (Client packet capture). - You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about.