i have spamming errors in telegraf log about plugin if server is not avalible yet :
[inputs.http] Error in plugin: [url=http://192.168.0.101:82/mahm]: Get "[http://192.168.0.101:82/mahm":](http://192.168.0.101:82/mahm%22:) dial tcp 192.168.0.101:82: connect: connection refused
is any setting in telegraf for plugin i can disable spamming this error ?
afaik there is no way to stop logging errors, that’s the kind of log that always gets written.
The options for managing logging are:
- debug (
true/false
) - Log at debug level.
- quiet (
true/false
) - Log only error level messages.
- log_level (
error/warn/info/debug/trace
) - General log-level, can be set for each input (overriding default)
The only way to “prevent” error logging is fixing the error
1 Like
Thank i got it. Still will be cool to have some option maybe to stop spamming if server should not be availible like always
A possible way to manage this kind of issue is to have Telegraf on the server itself, so it will run only when the server is online (you can send the data to the main Telegraf instance if you set up the influxdb_listener
, http_listener_v2
)
1 Like
Thanks i will check it , but this is not really server .
its main game pc that have MSI afterburner + MSI remote server for store data in http xml.