Generating HAR files to analyse web requests

Introduction

HAR is the short form for HTTP ARchive format. This can be used to analyse web requests when you browse to a particular site. It's particular useful for troubleshooting performance issues or a rendering issue (or items not loading) when accessing a particular page. 

What to do when you've been asked to provide a HAR file

Let's take the example scenario that a user is experiencing slow load times on their intranet homepage. The Claromentis support team will ask for the affected user(s) to complete the following steps, in order for us troubleshoot the issue further. 


Step 1: Setup recording of network requests and save this as a HAR file (instructions for each browser below)

Step 2: Once recording is enabled, navigate to the particular page (or perform the particular action) that is slow to load or is causing issues. 

Step 3: Save the HAR as described in the steps below.

Step 4: Attach the HAR file to the Discover support ticket. 

Step 5: The Claromentis Technical Support team will then analyse the web requests to troubleshoot.

 

How to generate a HAR file (this should be carried out by the affected user):

To generate the HAR file for Chrome

Open Google Chrome and go to the page where the issue is occurring.
From the Chrome menu bar select View > Developer > Developer Tools .
From the panel opened at the bottom of your screen, select the Network tab.
Look for a round Record button ( Record button ) in the upper left corner of the Network tab, and make sure it is red. If it is grey, click it once to start recording.
Check the box next to Preserve log .
Click the Clear button ( Clear button ) to clear out any existing logs from the Network tab.
Now try to reproduce the issue that you were experiencing before, while the network requests are being recorded.
Once you have reproduced the issue, right click anywhere on the grid of network requests, select Save as HAR with Content , and save the file to your computer.
Upload your HAR file to your ticket or attach it to your email so that we may analyze it.


To generate the HAR file for Firefox

Open Firefox and go to the page where you are experiencing trouble.
Select the Firefox menu (three horizontal parallel lines) at the top-right of your browser window, then select Web Developer > Network.
The Developer Network Tools will open as a docked panel at the side or bottom of Firefox. Click on the Network tab.
The recording will autostart once you start performing actions in the browser.
Once you have reproduced the issue and you see that all of the actions have been generated in the Developer Network Panel (should just take a few seconds), right click anywhere under the File column and click on Save all as Har.
Save the HAR file somewhere convenient.
Upload your HAR file to your ticket or attach it to your email so that we may analyze it.


To generate the HAR file for Internet Explorer

Open Internet Explorer and go to the page where the issue is occurring.
Press F12 on your keyboard(or click the gear icon > F12 Developer Tools)
Click the Network tab.
Reproduce the issue that you were experiencing before, while the network requests are being recorded.
Once done click the Save button.
Give the trace a filename and click the Save button which will save it as a .har file or .xml file.
Upload your HAR file to your ticket or attach it to your email so that we may analyze it.

 

How the Technical Support team will analyse the HAR file

The Claromentis team will analyse the HAR file using the following tool, to go over each request in order to find the root cause: 

https://toolbox.googleapps.com/apps/har_analyzer/

Last modified on 13 February 2020 by Lilith Hills
Created on 9 May 2019 by Will Emmerson

Was this helpful?  

0 Likes
Share