Skip to content

Instantly share code, notes, and snippets.

@o-az
Created July 20, 2025 02:37
Show Gist options
  • Save o-az/b043d37ce24f71d0b7b804b80185d063 to your computer and use it in GitHub Desktop.
Save o-az/b043d37ce24f71d0b7b804b80185d063 to your computer and use it in GitHub Desktop.
A guide on how to gather network logs on Chrome

Export Network Logs on Chrome:

Gathering Network Logs in Chrome

  1. To the right of the address bar, click the Chrome menu icon () and then select More Tools > Developer Tools. The Chrome Developer Tools window will open.
  2. Click the Network tab.
  3. Select the Preserve log checkbox.
  4. Click the Clear icon (a circle with a line through it) to clear the network log.
  5. While the Developer Tools window remains open, reproduce the issue you are experiencing.
  6. After you have reproduced the issue, you can export the log as a HAR file. To do this, right-click anywhere in the list of network requests and select Save all as HAR with content.
  7. Name and save the file.

Exporting a Sanitized HAR file

You also have the option to export a sanitized HAR file, which will not include sensitive data.

  • On the Network panel, click the Export HAR (sanitized) button (a downward-facing arrow).

If you need to include sensitive data, you can do the following:

  1. Click the Settings icon (a gear icon) in the menu bar of the Developer Tools window.
  2. On the Preferences tab, under the Network section, select Allow to generate HAR with sensitive data.
  3. Close the Settings window.
  4. Long-click the Export HAR (sanitized) button and from the drop-down menu, select Export HAR (with sensitive data).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment