Use Case
I configure all my applications to log to a specific directory in a shared root directory. Let's say C:\Log.
Telegraf would then log into C:\Log\Telegraf.
Sometimes I like to delete all logs, and then I just delete all folders in C:\Log. All processes then just recreate their folder, but Telegraf does not do this. It requires me to manually create the folder.
This is not a huge problem, but it would be nice if Telegraf would try to create its log folder when it does not exist and just fail to start when the process cannot create the folder (lack of access rights, disk space etc...).
I saw in an older issue that you don't want Telegraf to just create folders on its own. Maybe it could be an option to make it configurable and have the default set to "don't create log folder if not exists"?
Expected behavior
Telegraf should create its log folder if it does not exist on startup.
Actual behavior
Telegraf fails to start if the log folder does not exist.
Additional info
Tested on multiple different Windows desktop and server OSs.
Use Case
I configure all my applications to log to a specific directory in a shared root directory. Let's say
C:\Log.Telegraf would then log into
C:\Log\Telegraf.Sometimes I like to delete all logs, and then I just delete all folders in
C:\Log. All processes then just recreate their folder, but Telegraf does not do this. It requires me to manually create the folder.This is not a huge problem, but it would be nice if Telegraf would try to create its log folder when it does not exist and just fail to start when the process cannot create the folder (lack of access rights, disk space etc...).
I saw in an older issue that you don't want Telegraf to just create folders on its own. Maybe it could be an option to make it configurable and have the default set to "don't create log folder if not exists"?
Expected behavior
Telegraf should create its log folder if it does not exist on startup.
Actual behavior
Telegraf fails to start if the log folder does not exist.
Additional info
Tested on multiple different Windows desktop and server OSs.