Skip to content

Commit 1277781

Browse files
deadlypants1973marciocloudflare
authored andcommitted
[CF1] warp diag log retention (#24130)
* [CF1] warp diag log retention * final updates * Apply suggestions from code review Co-authored-by: marciocloudflare <[email protected]> --------- Co-authored-by: marciocloudflare <[email protected]>
1 parent 0d74b0e commit 1277781

File tree

1 file changed

+16
-4
lines changed
  • src/content/docs/cloudflare-one/connections/connect-devices/warp/troubleshooting

1 file changed

+16
-4
lines changed

src/content/docs/cloudflare-one/connections/connect-devices/warp/troubleshooting/warp-logs.mdx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ import { TabItem, Tabs, Stream } from "~/components";
1010

1111
The WARP client provides diagnostic logs that you can use to troubleshoot connectivity issues on a device.
1212

13-
<Stream
13+
<Stream
1414
id="c29964ab3dcf7c3432ebb2b4e93c3aca"
1515
title="Understand Cloudflare WARP diagnostic logs"
1616
thumbnail="https://pub-d9bf66e086fb4b639107aa52105b49dd.r2.dev/Warp-diagnostics%20thumbnail.png"
1717
showMoreVideos={false}
1818
chapters={{
19-
"Introduction": "0s",
19+
Introduction: "0s",
2020
"What are warp-diag files?": "44s",
2121
"How to download and navigate warp-diag files": "1m16s",
2222
"warp-status.txt": "2m06s",
2323
"warp-settings.txt": "2m29s",
2424
"daemon.log": "3m37s",
2525
"Addition tips": "8m07s",
26-
"Conclusion": "8m43s",
26+
Conclusion: "8m43s",
2727
}}
2828
/>
2929

@@ -81,7 +81,7 @@ The `warp-debugging-info-<date>-<time>.zip` archive contains the following files
8181
| `boringtun.log` | Log for the WARP tunnel that serves traffic from the device to Cloudflare's global network. |
8282
| `bound-dns-ports.txt` | Active processes on port `53`. |
8383
| `captive-portal-hotspot-detect.txt` | HTTP response of `captive.apple.com` |
84-
| `connectivity.txt` | DNS resolution and HTTP trace requests to [validate a successful connection](/cloudflare-one/connections/connect-devices/warp/deployment/firewall/#connectivity-checks). Can be used to determine whether traffic is routing through the WARP tunnel. |
84+
| `connectivity.txt` | DNS resolution and HTTP trace requests to [validate a successful connection](/cloudflare-one/connections/connect-devices/warp/deployment/firewall/#connectivity-checks). Can be used to determine whether traffic is routing through the WARP tunnel. |
8585
| `daemon_dns.log` | Contains detailed DNS logs if **Log DNS queries** is enabled in the WARP client. |
8686
| `daemon.log` | Detailed log of all actions performed by the WARP client, including all communication between the device and Cloudflare's global network. **Note:** This is the most useful debug log. |
8787
| `date.txt` | Date and time (UTC) when you ran the `warp-diag` command. |
@@ -158,6 +158,18 @@ The `warp-debugging-info` folder may contain multiple versions of the same log,
158158
In timestamped logs such as `daemon.log`, the most recent events will appear at the end of the file.
159159
:::
160160

161+
#### Log retention window
162+
163+
Each WARP log file (such as `connection_stats.log`, `dns_stats.log`, `daemon.log`, `boringtun.log`, `daemon_dns.log`, `dex.log` and `captive-portal.log`) is limited by size and age:
164+
165+
- **Maximum file size:** 10 MB
166+
- **Maximum file age:** 24 hours
167+
- **Maximum number of retained versions per log:** 4 (for example, `daemon.log`, `daemon.1.log`, `daemon.2.log`, and `daemon.3.log`)
168+
169+
Log files may include data from up to 96 hours (four days) prior to when `warp-diag` was run, but only if log activity is minimal. In environments with high logging volume (for example, repeated errors), logs may rotate more frequently, and the captured window could be much shorter (only a few hours).
170+
171+
Always check the timestamps at the end of each log file to verify the time range covered by the diagnostic archive.
172+
161173
## iOS/Android/ChromeOS
162174

163175
### Retrieve logs

0 commit comments

Comments
 (0)