Introduction
An HTTP Archive (HAR) file contains a JSON-formatted log of all network requests and responses between a web browser and a server. Generating a HAR file is a common method for troubleshooting user interface (UI) issues in web applications like HCP Terraform and Terraform Enterprise.
This guide provides instructions for creating a HAR file in several common web browsers.
Expected Outcome
You will successfully generate and save a HAR file that captures the network activity related to a specific UI issue, which can then be provided for analysis.
Procedure
The specific steps to create a HAR file may vary slightly depending on your browser version and operating system. The following instructions are based on recent versions of popular browsers.
Mozilla Firefox
- Click the Application Menu (hamburger icon) in the upper-right corner.
- Select More Tools > Web Developer Tools (or press
Ctrl+Shift+Ion Windows/Linux orCmd+Option+Ion macOS). - In the developer tools panel, select the Network tab.
- Click the settings icon (a small gear) and enable Persist Logs.
- Click the trash can icon (Clear) to remove any previous network activity.
- With the developer tools still open, replicate the UI issue you are troubleshooting.
- After replicating the issue, right-click on any of the network requests displayed in the log.
- Select Save All as HAR from the context menu and save the file.
Google Chrome
- Click the Customize and control Google Chrome menu (three vertical dots) in the upper-right corner.
- Select More Tools > Developer Tools (or press
Ctrl+Shift+Ion Windows/Linux orCmd+Option+Ion macOS). - In the developer tools panel, select the Network tab.
- Enable the Preserve log checkbox.
- Click the Clear icon (a circle with a line through it) to remove any previous network activity.
- With the developer tools still open, replicate the UI issue you are troubleshooting.
- After replicating the issue, right-click on any of the network requests displayed in the log.
- Select Save all as HAR with content from the context menu and save the file.
Microsoft Edge (Chromium-based)
- Click the Settings and more menu (three horizontal dots) in the upper-right corner.
- Select More tools > Developer tools (or press
Ctrl+Shift+Ion Windows/Linux orCmd+Option+Ion macOS). - In the developer tools panel, select the Network tab.
- Enable the Preserve log checkbox.
- Click the Clear icon to remove any previous network activity.
- With the developer tools still open, replicate the UI issue you are troubleshooting.
- After replicating the issue, right-click on any of the network requests displayed in the log.
- Select Save all as HAR with content from the context menu and save the file.