Skip to content

Commit

Permalink
Document workaround for truncated powershell output (influxdata#6910)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson authored and Mathieu Lecarme committed Apr 17, 2020
1 parent f9541d4 commit 4b59275
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion plugins/inputs/exec/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,16 @@ It can be paired with the following configuration and will be run at the `interv

### Common Issues:

#### Q: My script works when I run it by hand, but not when Telegraf is running as a service.
#### My script works when I run it by hand, but not when Telegraf is running as a service.

This may be related to the Telegraf service running as a different user. The
official packages run Telegraf as the `telegraf` user and group on Linux
systems.

#### With a PowerShell on Windows, the output of the script appears to be truncated.

You may need to set a variable in your script to increase the numer of columns
available for output:
```
$host.UI.RawUI.BufferSize = new-object System.Management.Automation.Host.Size(1024,50)
```

0 comments on commit 4b59275

Please sign in to comment.