How do I view large Terraform plan logs in a readable format?
Last updated: December 19, 2025
Context
When working with large Terraform plans in Spacelift, the logs can be difficult to read directly in the interface. While logs can be downloaded, the raw format isn't user-friendly, especially when trying to review changes with color coding and formatting symbols (~/+/-).
Answer
To view large Terraform plan logs in a more readable format, you can use Visual Studio Code with a specific extension and formatting. Here's how:
Download the log file from Spacelift
Open the file in Visual Studio Code
Install the "Strip ANSI Escape Codes" extension from the VS Code marketplace
With the log file open:
Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac)
Type and select "Strip ANSI Escape Codes" command
Change the file format to "Less" for optimal viewing
This method will provide a cleaner, more readable version of the logs with proper formatting and color coding.
Source: Resolution provided by Spacelift support team through direct customer interaction.