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
[telegraf] Error running agent: contradicting setting between 'logtarget' and 'logformat'
System info
v1.32.2 Windows server 2019
Docker
No response
Steps to reproduce
Upgrade from v1.31.2 to v1.32.2 on Windows, dont touch any configs
telegraf.exe --service start
Get startup error "[telegraf] Error running agent: contradicting setting between 'logtarget' and 'logformat'"
...
Expected behavior
Telegraf starts
Actual behavior
Telegraf doesnt start
Additional info
Hi, we upgraded telegraf on Windows from 1.31.2 to 1.32.2 and we get an error startup error that is supposed to be only a deprecation until v1.40.0:
case "eventlog":
msg := "Agent setting %q is deprecated, please set %q to %q and remove this setting!"
deprecation := "The setting will be removed in v1.40.0."
log.Printf("W! "+msg+" "+deprecation, "logtarget", "logformat", "eventlog")
if cfg.LogFormat != "" && cfg.LogFormat != "eventlog" {
return errors.New("contradicting setting between 'logtarget' and 'logformat'")
}
cfg.LogFormat = "eventlog"
We use the deprecated: logtarget = "eventlog"
in config and we get the ""contradicting setting between 'logtarget' and 'logformat'"" startup error.
The issue is that we DO NOT set "logformat" anywhere so this error seems wrongly raised.
The error condition has "cfg.LogFormat != """ so it must be filled somehow to some default value and then this error is raised ?
The text was updated successfully, but these errors were encountered:
Relevant telegraf.conf
Logs from Telegraf
System info
v1.32.2 Windows server 2019
Docker
No response
Steps to reproduce
...
Expected behavior
Telegraf starts
Actual behavior
Telegraf doesnt start
Additional info
Hi, we upgraded telegraf on Windows from 1.31.2 to 1.32.2 and we get an error startup error that is supposed to be only a deprecation until v1.40.0:
We use the deprecated:
logtarget = "eventlog"
in config and we get the ""contradicting setting between 'logtarget' and 'logformat'"" startup error.
The issue is that we DO NOT set "logformat" anywhere so this error seems wrongly raised.
The error condition has "cfg.LogFormat != """ so it must be filled somehow to some default value and then this error is raised ?
The text was updated successfully, but these errors were encountered: