You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Support] Updated instructions to export HAR with recent updates to Chrome (#18440)
* Replace special chars with real spaces
* Update instructions to export
* Apply suggestions from code review
Co-authored-by: Jun Lee <[email protected]>
---------
Co-authored-by: Jun Lee <[email protected]>
Copy file name to clipboardExpand all lines: src/content/docs/support/troubleshooting/general-troubleshooting/gathering-information-for-troubleshooting-sites.mdx
+54-48Lines changed: 54 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ title: Gathering information for troubleshooting sites
6
6
7
7
## Overview
8
8
9
-
It is important to capture as much information as possible to diagnose an issue and to[provide adequate details to Cloudflare support](/support/contacting-cloudflare-support/). This article explains how to gather troubleshooting information commonly requested by Cloudflare Support.
9
+
It is important to capture as much information as possible to diagnose an issue and to[provide adequate details to Cloudflare support](/support/contacting-cloudflare-support/). This article explains how to gather troubleshooting information commonly requested by Cloudflare Support.
10
10
11
11
:::note
12
12
@@ -33,49 +33,55 @@ Some browsers either require a browser extension or cannot generate a HAR. When
33
33
34
34
### In Chrome
35
35
36
-
1. In a browser page viewed in Incognito Mode, right-click anywhere and select**Inspect Element**.
36
+
1. In a browser page viewed in Incognito Mode, right-click anywhere and select**Inspect Element**.
37
37
38
-
2. The developer tools either appear at the bottom or left side of the browser. Click the**Network**tab.
38
+
2. The Chrome DevTools appear either at the bottom, or left side of the browser. Click the**Network**tab.
39
39
40
40

41
41
42
-
3. Check**Preserve log**. Please also check ***Disable cache*** if you are reporting a Cloudflare Cache issue.
42
+
3. Check**Preserve log**. Please also check **Disable cache** if you are reporting a Cloudflare Cache issue.
43
43
44
44
4. Click record.
45
45
46
46

47
47
48
-
5. Browse to the URL that causes issues. Once the issue is experienced, right click on any of the items within the**Network** tab and select **Save all as HAR with Content**.
48
+
5. Browse to the URL that causes issues. Once the issue is experienced, click the "Export HAR" option at the top of DevTools.
49
49
50
-

50
+
.
51
51
52
52
6. Attach the HAR file to your support ticket.
53
53
54
+
:::note
55
+
56
+
As of Chrome 130, this exports a sanitized HAR with redacted cookies and personalised data. To disable this, go to DevTools **Settings** > **Preferences** > **Network** > **Allow to generate HAR with sensitive data**.
57
+
58
+
:::
59
+
54
60
### In Firefox
55
61
56
-
1. While using a Private Window, use the application menu and select**Tools** > **Web Developer** > **Network**or press*Ctrl+Shift+I*(Windows/Linux) or*Cmd+Option+I*(OS X).
62
+
1. While using a Private Window, use the application menu and select**Tools** > **Web Developer** > **Network**or press_Ctrl+Shift+I_(Windows/Linux) or_Cmd+Option+I_(OS X).
57
63
58
64
2. Browse to the URL that causes issues.
59
65
60
-
3. After duplicating the issue,right-click and choose**Save All As HAR**.
66
+
3. After duplicating the issue,right-click and choose**Save All As HAR**.
61
67
62
68
### In Microsoft Edge
63
69
64
-
1. In a Private window, navigate to**Developer tools**(use*F12*as a shortcut) and select the**Network**tab.
70
+
1. In a Private window, navigate to**Developer tools**(use`F12`as a shortcut) and select the**Network**tab.
65
71
66
72
2. Browse to the URL that causes issues.
67
73
68
-
3. After duplicating the issue, click on**Export as HAR**followed by**Save As...**.
74
+
3. After duplicating the issue, click on**Export as HAR**followed by**Save As...**.
69
75
70
76
### In Safari
71
77
72
-
1. In Safari, ensure a**Develop**menu appears at the top of a Private Window in the browser window. Otherwise, go to**Safari** > **Preferences** > **Advanced**and select**Show Develop Menu in menu bar**
78
+
1. In Safari, ensure a**Develop**menu appears at the top of a Private Window in the browser window. Otherwise, go to**Safari** > **Preferences** > **Advanced**and select**Show Develop Menu in menu bar**
73
79
74
-
2. Navigate to**Develop** > **Show Web Inspector**.
80
+
2. Navigate to**Develop** > **Show Web Inspector**.
75
81
76
82
3. Browse to the URL that causes issues.
77
83
78
-
4. Ctrl + clickon a resource within Web Inspector and click**Export HAR**.
84
+
4. Ctrl + clickon a resource within Web Inspector and click**Export HAR**.
79
85
80
86
### In Mobile
81
87
@@ -93,7 +99,7 @@ Some browsers either require a browser extension or cannot generate a HAR. When
93
99
94
100
5. Select the **Network** tab in the DevTools window.
95
101
96
-
6. Check **Preserve log**. Please also check ***Disable cache*** if you are reporting a Cloudflare Cache issue.
102
+
6. Check **Preserve log**. Please also check **_Disable cache_** if you are reporting a Cloudflare Cache issue.
97
103
98
104
7. Click **record**.
99
105
@@ -103,7 +109,7 @@ Some browsers either require a browser extension or cannot generate a HAR. When
103
109
104
110

105
111
106
-
9.Attach the HAR file to your support ticket alongside a screen recording from the affected Samsung device. Instructions on how to do this from Samsung devices can be found in [Samsung's documentation here](https://www.samsung.com/au/support/mobile-devices/screen-recorder/).
112
+
9.Attach the HAR file to your support ticket alongside a screen recording from the affected Samsung device. Instructions on how to do this from Samsung devices can be found in [Samsung's documentation here](https://www.samsung.com/au/support/mobile-devices/screen-recorder/).
107
113
108
114
---
109
115
@@ -119,36 +125,36 @@ In certain situations when request is not issued or cancelled by the browser (fo
119
125
120
126
### In Chrome
121
127
122
-
1. Go to the**Console**tab from the Developer Tools bar.
123
-
2. Go to the Console Settings and select**Preserve Log**.
128
+
1. Go to the**Console**tab from the DevTools bar.
129
+
2. Go to the Console Settings and select**Preserve Log**.
124
130
3. Leave the console open and perform the steps that reproduce the issue.
125
-
4. Rightclick on any of the items within the**Console**tab and select**Save as**log file.
131
+
4. Right-click on any of the items within the**Console**tab and select**Save as**log file.
126
132
5. Attach the log file to your support ticket.
127
133
128
134

129
135
130
136
### In Firefox
131
137
132
-
1. Go to the**Console**tab from the Web Developer Tools bar.
133
-
2. Go to the Console Settings and select**Persist Log**and**Show Timestamps**.
138
+
1. Go to the**Console**tab from the Web Developer Tools bar.
139
+
2. Go to the Console Settings and select**Persist Log**and**Show Timestamps**.
134
140
3. Leave the console open and perform the steps that reproduce the issue.
135
-
4. Right click,**Select All**messages and**Export Visible Messages to File**.
141
+
4. Right click,**Select All**messages and**Export Visible Messages to File**.
136
142
5. Attach the log file to your support ticket.
137
143
138
144
### In Microsoft Edge
139
145
140
-
1. Go to the**Console**tab from the Developer Tools bar.
141
-
2. Go to the Console Settings and select**Preserve Log**.
146
+
1. Go to the**Console**tab from the Developer Tools bar.
147
+
2. Go to the Console Settings and select**Preserve Log**.
142
148
3. Leave the console open and perform the steps that reproduce the issue.
143
-
4. Right click on any of the items within the**Console**tab and select**Save as**log file.
149
+
4. Right click on any of the items within the**Console**tab and select**Save as**log file.
144
150
5. Attach the log file to your support ticket.
145
151
146
152
### In Safari
147
153
148
-
1. Go to the**Console**tab from the Web Inspector bar.
149
-
2. Tick the box**Preserve Log**.
154
+
1. Go to the**Console**tab from the Web Inspector bar.
155
+
2. Tick the box**Preserve Log**.
150
156
3. Leave the console open and perform the steps that reproduce the issue.
151
-
4. Select all the messages, right click and**Save Selected**to a log file.
157
+
4. Select all the messages, right click and**Save Selected**to a log file.
152
158
5. Attach the log file to your support ticket.
153
159
154
160
---
@@ -178,12 +184,12 @@ You can only generate a NetLog dump on the Google Chrome, Opera or Microsoft Edg
178
184
179
185
## Identify the Cloudflare data center serving your request
180
186
181
-
[A map of our data centers](https://www.cloudflare.com/network-map)is listed on the[Cloudflare status page](https://www.cloudflarestatus.com/), sorted by continent.
182
-
The three-letter code in the data center name is the[IATA code](http://en.wikipedia.org/wiki/IATA_airport_code)of the nearest major international airport.
187
+
[A map of our data centers](https://www.cloudflare.com/network-map)is listed on the[Cloudflare status page](https://www.cloudflarestatus.com/), sorted by continent.
188
+
The three-letter code in the data center name is the[IATA code](http://en.wikipedia.org/wiki/IATA_airport_code)of the nearest major international airport.
183
189
Determine the Cloudflare data center serving requests for your browser by visiting:
184
190
`http://``_www.example.com_``/cdn-cgi/trace.`
185
191
186
-
Replace`www.example.com`with your domain and hostname. Note the`colo`field from the output.
192
+
Replace`www.example.com`with your domain and hostname. Note the`colo`field from the output.
187
193
188
194
---
189
195
@@ -204,13 +210,13 @@ If you are using Windows, you can find more details on how to use curl on Window
Run the following command to send a standard HTTP GET request to your website (replace`www.example.com`with your hostname):
213
+
Run the following command to send a standard HTTP GET request to your website (replace`www.example.com`with your hostname):
208
214
209
215
```
210
216
curl -svo /dev/null http://www.example.com/
211
217
```
212
218
213
-
This example curl command returns output detailing the HTTP response and request headers but discards the page body output. curl output confirms the HTTP response and whether Cloudflare is currently proxyingtraffic for the site.
219
+
This example curl command returns output detailing the HTTP response and request headers but discards the page body output. curl output confirms the HTTP response and whether Cloudflare is currently proxyingtraffic for the site.
214
220
215
221
:::note
216
222
@@ -237,7 +243,7 @@ assistance.
237
243
238
244
### Performance
239
245
240
-
curl measures latency or performance degradation for HTTP/HTTPS requests via the[*-w* or *--write-out*curl option](https://curl.haxx.se/docs/manpage.html#-w). The example curl below measures several performance vectors in the request transaction such as duration of the TLS handshake, DNS lookup, redirects, transfers, etc:
246
+
curl measures latency or performance degradation for HTTP/HTTPS requests via the[`-w` or `--write-out`curl option](https://curl.haxx.se/docs/manpage.html#-w). The example curl below measures several performance vectors in the request transaction such as duration of the TLS handshake, DNS lookup, redirects, transfers, etc:
parses the TLS handshake and certificate information.
300
306
:::
301
307
302
-
To display the origin certificate (assuming one is installed), replace`203.0.113.34`below with the actual IP address of your origin web server and replace`www.example.com`with your domain and hostname:
308
+
To display the origin certificate (assuming one is installed), replace`203.0.113.34`below with the actual IP address of your origin web server and replace`www.example.com`with your domain and hostname:
@@ -324,25 +330,25 @@ For more details, refer to [Pause Cloudflare](/fundamentals/setup/manage-domains
324
330
325
331
## Perform a traceroute
326
332
327
-
Traceroute is a network diagnostic tool that measures the route latency of packets across a network. Most operating systems support the*traceroute*command. If you experience connectivity issues with your Cloudflare-proxied website and[ask Cloudflare Support for assistance](/support/contacting-cloudflare-support/), ensure to provide output from a traceroute.
333
+
Traceroute is a network diagnostic tool that measures the route latency of packets across a network. Most operating systems support the`traceroute`command. If you experience connectivity issues with your Cloudflare-proxied website and[ask Cloudflare Support for assistance](/support/contacting-cloudflare-support/), ensure to provide output from a traceroute.
328
334
329
335
:::note
330
336
331
337
Timeouts are possible for ping results because Cloudflare limits ping
332
338
requests.
333
339
:::
334
340
335
-
Review the instructions below for running tracerouteon different operating systems. Replace`www.example.com`with your domain and hostname in the examples below:
341
+
Review the instructions below for running tracerouteon different operating systems. Replace`www.example.com`with your domain and hostname in the examples below:
336
342
337
343
### Run traceroute on Windows
338
344
339
-
1. Open the**Start**menu.
345
+
1. Open the**Start**menu.
340
346
341
-
2. Click**Run**.
347
+
2. Click**Run**.
342
348
343
-
3. To open the command line interface, type**cmd**and then click**OK**.
349
+
3. To open the command line interface, type**cmd**and then click**OK**.
3. Type the*domain* or *IP address*in the appropriate input field and press**Trace**.
391
+
1. Openthe**Network Utility**application.
392
+
2. Click the**Traceroute**tab.
393
+
3. Type the_domain_ or _IP address_in the appropriate input field and press**Trace**.
388
394
4. You can copy the results to save in a file or paste in another program.
389
395
390
-
Alternatively, follow the same Linux traceroute instructions above when using the Mac OS terminalprogram.
396
+
Alternatively, follow the same Linux traceroute instructions above when using the Mac OS terminalprogram.
391
397
392
398
---
393
399
394
400
## Add the CF-RAY header to your logs
395
401
396
-
The**CF-RAY**header traces a website request through Cloudflare's network. Provide the**CF-RAY**of a web request to Cloudflare support when troubleshooting an issue. You can also add**CF-RAY** to your logs by editing your origin web server configuration with the snippet below that corresponds to your brand of web server:
402
+
The**CF-RAY**header traces a website request through Cloudflare's network. Provide the**CF-RAY**of a web request to Cloudflare support when troubleshooting an issue. You can also add**CF-RAY** to your logs by editing your origin web server configuration with the snippet below that corresponds to your brand of web server:
397
403
398
404
### For Apache web servers, add `%{CF-Ray}i` to LogFormat
399
405
@@ -465,7 +471,7 @@ packet capture is running, it will be recorded.
465
471
Cloudflare suggests [Wireshark](https://www.wireshark.org/download.html) for running packet captures. For instructions on how to use the _tcpdump_ command line, refer to [this](https://www.wireshark.org/docs/wsug_html_chunked/AppToolstcpdump.html) article.
466
472
467
473
1. Close all programs/browser tabs that could be sending data in the background to avoid having to use a lot of display filters later.
468
-
2. Create your Wireshark capture filter (refer to [this](https://wiki.wireshark.org/CaptureFilters) articlefor more information).
474
+
2. Create your Wireshark capture filter (refer to [this](https://wiki.wireshark.org/CaptureFilters) articlefor more information).
469
475
3. Select the appropriate interface (e.g. Wi-Fi: en0). If you're not sure which interface to use, Wireshark provides an I/O graph of each interface to give you a hint.
470
476
4. Click the blue shark fin icon in the top left-hand corner to start your packet capture.
0 commit comments