Skip to content

[extension/filestorage] - Provide an option to the user to create a directory for them #34939

Closed
@VihasMakwana

Description

@VihasMakwana

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions