Does someone have a working example on how to use the exec output with a batch file?
If I could just get the telegraf output logged to a file, I can continue to edit the script to my needs. But currently I only get an error.
[outputs.exec] Command error: {"'.' is not recognized as an internal or external command,\noperable program or batch file.\n" '\x00' '\x00'}
Exec config
[[outputs.exec]]
alias = "move_secondary"
command = ['./log.bat']
flush_interval = "1s"
metric_batch_size = 1000
metric_buffer_limit = 100000
data_format = "influx"
log_level = "debug"
batch file
@echo off
REM Append stdin to output.txt
type con >> output.txt
