Follow

How to Generate HAR Files

What Happened?

This article describes how to generate HAR files on the most commonly used web browsers (Chrome, Firefox, Safari). 

  • HAR files are used by the SOC because they provide detailed information about the web browser request
  • Generating and providing a HAR file to the SOC while the issue is ongoing is essential for faster resolution

Environment

  • DDoS Proxy
  • WAF 

Resolution/Answer

To generate a HAR file using Chrome

  1. From the Chrome menu bar select View > Developer > Developer Tools
  2. Select the network tab from the Developer Tools panel
  3. Click the Clear button ( Screen_Shot_2020-01-14_at_9.45.06_PM.png )to remove any existing logs on the Network tab
  4. Select the Preserve log checkbox
  5. Select the Disable cache checkbox to prevent content from being loaded from the local cache
  6. Click the round record button ( Screen_Shot_2020-01-14_at_9.44.56_PM.png ) in the upper left corner of the panel to make sure it's red (recording). If the button is grey, click it once to start recording
  7. Go to the page where the issue is occurring
  8. Reproduce the issue that you were experiencing so the requests are recorded on the file
  9. Once the issue has been reproduced, right-click on any of the requests on the panel, select Save as HAR with Content
  10. Save the file to your computer
  11. Upload the HAR file to the Secure Repository in the Portal

 

To generate a HAR file using Firefox

  1. Select the Firefox menu  ( Screen_Shot_2020-01-14_at_9.47.50_PM.png ) at the top-right of the window
  2. Select Web Developer > Network
  3. Select the network tab from the Developer Network Tools panel
  4. Click the clear icon ( Screen_Shot_2020-01-14_at_9.51.45_PM.png ) to remove any existing logs on the Network tab
  5. The recording starts when actions are performed in the browser
  6. Go to the page where the issue is occurring
  7. Reproduce the issue that you were experiencing so the requests are recorded on the file
  8. Once the issue has been reproduced, right-click on any of the requests on the panel, select Save all as HAR
  9. Save the file to your computer
  10. Upload the HAR file to the Secure Repository in the Portal

 

To generate a HAR file using Safari

  1. Make sure the Develop menu is visible in Safari. If it's not available, follow the instructions on Use the developer tools in the Develop menu in Safari on Mac
  2. Click on the Develop menu
  3. Select Show Web Inspector
  4. Select the Network tab
  5. Click the Clear network items icon ( Screen_Shot_2020-01-14_at_10.17.56_PM.png ) 
  6. Select the Preserve log checkbox
  7. Go to the page where the issue is occurring
  8. Reproduce the issue that you were experiencing so the requests are recorded on the file
  9. Click the Export ( Screen_Shot_2020-01-14_at_10.32.42_PM.png ) button on the far right of the panel
  10. Save the file to your computer
  11. Upload the HAR file to the Secure Repository in the Portal

 

To generate a HAR file using Microsoft Edge icone.png

  1. Select the Edge menu (edge1.png) at the top-right of the window
  2. Select More Tools > Developer Tools
  3. Select the Network tab from the Developer Network Tools panel (ie2.png)
  4. (optional) Click the Clear Session icon (edge2.png) to remove any existing logs on the Network tab unless it's greyed-out (edge3.png)
  5. Make sure the recording started (edge4.png)
  6. Go to the page where the issue is occurring
  7. Reproduce the issue that you were experiencing so the requests are recorded on the file
  8. Once the issue has been reproduced click the Export as HAR button (edge6.png)
  9. Save the file to your computer
  10. Upload the HAR file to the Secure Repository in the Portal

To generate a HAR file using Microsoft Internet Explorer iconie.png

  1. Select the Gear menu (ie1.png) at the top-right of the window
  2. Select F12 Developer Tools
  3. Select the Network tab from the Developer Network Tools panel (ie2.png)
  4. (optional) Click the Clear Session icon (edge2.png) to remove any existing logs on the Network tab unless it's greyed-out (edge3.png)
  5. Make sure the recording started (edge4.png)
  6. Go to the page where the issue is occurring
  7. Reproduce the issue that you were experiencing so the requests are recorded on the file
  8. Once the issue has been reproduced click the Export as HAR button (edge6.png)
  9. Save the file to your computer
  10. Upload the HAR file to the Secure Repository in the Portal

Additional Information

 

Related Content

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request