Closed Gill-Bates closed 2 years ago
There's no reason not to allow choosing the working dir and it would be a small effort to implement, I'll do that in the coming days.
In order not to break backwards compatibility however I'll add the 'workingDir' parameter to the 'collect' section of the config, rather than moving the logging path parameter to a new section.
Thanks for the suggestion, makes a lot of sense :)
I was delayed a bit, but I've committed a new version that supports the working dir parameter. You can download the new executable here.
The parameter has an example in the new fullConfig.yaml. It looks like this:
collect:
workingDir: /path/to/dir
I'll soon release an official release with all these latest changes and tag you in the credits for all the helpful suggestions, thanks!
Did you consider the logic, that the same path for collector.log is used, when no Log-Parameter ist specified?
The collector needs four files in my configuration:
With the parameter
path
I can determine where the logs are stored, but not where the working files are placed.However, this path only applies to the log files. I would find it helpful if there was also a parameter to set the location of the working files. But that would mean a small redsign of the YAML structure. For instance: