<p>You can configure this with the <code>hudson.consoleTailKB</code> system property (default value is 150), documented on <a href="https://www.jenkins.io/doc/book/managing/system-properties/" rel="nofollow noreferrer">this page</a>.  How/where to set system properties depends on how you installed Jenkins and how you start your Jenkins service (for instance, I configure mine by setting the <code>JENKINS_JAVA_OPTIONS</code> variable in <code>/etc/sysconfig/jenkins</code>).</p>
<p>Alternatively - those look like ANSI escape codes to me, so you could try the <a href="https://plugins.jenkins.io/ansicolor/" rel="nofollow noreferrer">ansicolor plugin</a> or load your logs into a viewer/editor which speaks ANSI color codes.</p>

CC BY-SA 4.0
2023-03-24T20:46:50.360Z
2023-03-24T20:46:50.360Z
jayhendren
<p>The Blue Ocean plugin for Jenkins truncates the output of a Terraform plan at around 1700 lines, and shows a button &quot;Show Complete Log&quot; for the full thing.</p>
<p>When I open the full log, Terraform plans that have colors are now turned into special funky characters that make it impossible to read the plans.</p>
<p>I'm looking to increase the amount of lines (or bytes) that can be shown in the nice interface (with colors) to make it easy to read.</p>
<p>Example of special characters:</p>
<pre><code>[2023-03-23T17:48:53.254Z] [0m[1mmodule.mymodule.module.application.module.aws_something.data.file.policy: Reading...[0m[0m
...
[32m+[0m [0m[1m[0meffect[0m[0m    = &quot;Allow&quot;
[2023-03-23T17:48:53.280Z]           [32m+[0m [0m[1m[0mresources[0m[0m = [
[2023-03-23T17:48:53.280Z]               [32m+[0m [0m&quot;arn:aws:sqs:ap-xxxxxxx-2:11212121212:xxxxxxxxxxxxxxxxxxx&quot;,
[2023-03-23T17:48:53.280Z]             ]
[2023-03-23T17:48:53.280Z]           [32m+[0m [0m[1m[0msid[0m[0m       = &quot;PermitTopic&quot;
</code></pre>
<p>Any help?</p>

<jenkins><jenkins-pipeline><jenkins-blueocean>
Plugin for Jenkins truncates Terraform Plan output
Heitor Morgado
# Plugin for Jenkins truncates Terraform Plan output

(Asked by: username_0 on 2023-03-23)

The Blue Ocean plugin for Jenkins truncates the output of a Terraform plan at around 1700 lines, and shows a button "Show Complete Log" for the full thing.
When I open the full log, Terraform plans that have colors are now turned into special funky characters that make it impossible to read the plans.
I'm looking to increase the amount of lines (or bytes) that can be shown in the nice interface (with colors) to make it easy to read.
Example of special characters:
[2023-03-23T17:48:53.254Z] [0m[1mmodule.mymodule.module.application.module.aws_something.data.file.policy: Reading...[0m[0m
...
[32m+[0m [0m[1m[0meffect[0m[0m    = "Allow"
[2023-03-23T17:48:53.280Z]           [32m+[0m [0m[1m[0mresources[0m[0m = [
[2023-03-23T17:48:53.280Z]               [32m+[0m [0m"arn:aws:sqs:ap-xxxxxxx-2:11212121212:xxxxxxxxxxxxxxxxxxx",
[2023-03-23T17:48:53.280Z]             ]
[2023-03-23T17:48:53.280Z]           [32m+[0m [0m[1m[0msid[0m[0m       = "PermitTopic"

Any help?

**Tags:** jenkins, jenkins-pipeline, jenkins-blueocean


---

## 1 answers

### Answer by username_1 on 2023-03-24. Score: 1

You can configure this with the `hudson.consoleTailKB` system property (default value is 150), documented on [this page](https://www.jenkins.io/doc/book/managing/system-properties/). How/where to set system properties depends on how you installed Jenkins and how you start your Jenkins service (for instance, I configure mine by setting the `JENKINS_JAVA_OPTIONS` variable in `/etc/sysconfig/jenkins`).

Alternatively - those look like ANSI escape codes to me, so you could try the [ansicolor plugin](https://plugins.jenkins.io/ansicolor/) or load your logs into a viewer/editor which speaks ANSI color codes.


---

