How to capture HAR file for diagnostic purposes

Prev Next

HAR files are used to gather data from an end user's browser. A HAR file captures objects and response calls that a webpage generates, and eSHARE engineers use HAR files to investigate and troubleshoot a variety of browser-based issues experienced by users. This document explains how to capture a HAR file in each supported browser, and how to capture a Console Dump file. The following steps will be reviewed:

Capture a HAR File in Google Chrome

  1. Open Google Chrome and navigate to the page where the issue is occurring.

  2. Select the 'Chrome menu' > 'More Tools' > 'Developer Tools'.

  3. In the panel that opens, select the 'Network' tab.

  4. Ensure the round 'Record' button in the upper left corner is red; if grey, click it to start recording.

  5. Check the box for 'Preserve log'.

  6. Click the 'Clear' button to remove any existing logs from the 'Network' tab.

  7. Reproduce the issue while the network requests are being recorded.

  8. Once the issue is reproduced and all the steps are performed, select the button at the top which says 'Export HAR (sanitized)…', and save the file to your computer.

  9. Upload your HAR file to your ticket or attach it to your email for analysis by our Support team.

Please watch the below recording for reference

Capture a HAR File in Firefox

  1. Open Firefox and go to the page where you are experiencing trouble.

  2. Select the Firefox menu (three horizontal lines) at the top-right, then choose 'Web Developer' > 'Network'.

  3. The 'Developer Network Tools' will open as a docked panel. Click the 'Network' tab. Recording starts automatically when you perform actions in the browser.

  4. After reproducing the issue, right-click under the 'File' column and select 'Save all as HAR'.

  5. Save the HAR file to your computer.

  6. Upload your HAR file to your ticket or attach it to your email for analysis by our Support team.

Capture a HAR File in Microsoft Edge

  1. Open the Network tool in F12 developer tools, or by going to 'Edge menu' > 'More Tools' > 'Developer Tools'.

  2. Check the box for 'Preserve log'.

  3. Click the 'Clear' button to remove any existing logs from the 'Network' tab.

  4. Reproduce the issue while the network requests are being recorded.

  5. Once the issue is reproduced, select the button at the top which says 'Export HAR (sanitized)…', and save the file to your computer. Export captured traffic as a HAR (CTRL + S).

  6. Upload your HAR file to your ticket or attach it to your email for analysis by our Support team.

Capture a HAR File in Safari

  1. Ensure the 'Develop' menu is visible in Safari. If not, follow the instructions to enable it at this link.

  2. Open the 'Develop' menu and select 'Show Web Inspector'.

  3. Click the 'Network' tab and perform the activity causing issues.

  4. Click the 'Export' icon on the far right of the 'Network' tab and save the HAR file.

  5. Upload your HAR file to your ticket or attach it to your email for analysis by our Support team.

Capture a Console Dump File

  1. Follow the same steps mentioned above for the HAR file.

  2. After reproducing the error, do not close dev tools.

  3. Click the 'Console' tab.

  4. Right-click anywhere and select 'Save as' (or select all, copy, and paste into a .txt file).

  5. Share both the HAR and the console file with us.