You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because environment variable (including system variables) contains only one slash in path, but for accessing such path from some system commands (open/read/write/etc.) you need to double slashes.
Current schema:
Read config file
Replace environment variables with their values
Parse TOML
Proposed schema:
Read config file
If OS==Windows and environment variable value contains single slash - replace it with double slash, other variables replace as usual
Parse TOML
The text was updated successfully, but these errors were encountered:
Bug report
Relevant telegraf.conf:
System info:
Telegraf v1.5.0 (git: release-1.5 a1668bb)
OS Name: Microsoft Windows 10 Enterprise
OS Version: 10.0.16299 N/A Build 16299
TEMP Environment variable value: TEMP=C:\Temp
Steps to reproduce:
Use provided config file and try to run telegraf:
Expected behavior:
Telegraf runs and log file created in path C:\Temp\telegraf.log
Actual behavior:
Additional info:
This is because environment variable (including system variables) contains only one slash in path, but for accessing such path from some system commands (open/read/write/etc.) you need to double slashes.
Current schema:
Proposed schema:
The text was updated successfully, but these errors were encountered: