Closed
Description
Component(s)
extension/storage/filestorage
Is your feature request related to a problem? Please describe.
When using the filelog
receiver with persistence enabled, I need to ensure that the directory exists before starting the collector; otherwise, it will throw an error.
It would be a great help if collector could automate this part for me.
Describe the solution you'd like
It would be convenient if the file_storage
option had a setting that, when enabled, would automatically create the directory for you.
We can name the option auto_create_directory
or create_directory
and set it to false
by default (existing behaviour), but if the user wants the collector to handle the directory creation, they can just turn this option on.
Describe alternatives you've considered
No response
Additional context
No response