logstash-plugins / logstash-input-google_cloud_storage

Apache License 2.0
4 stars 9 forks source link

feat: add bucket_prefix option to limit lists to specific directory #16

Open jalonsoa opened 3 years ago

jalonsoa commented 3 years ago

Release notes

What does this PR do?

Add a new parameter to allow select the directory to list inside the bucket.

Why is it important/What is the impact to the user?

If you have a bucket with different files from different proyects and you only want files from one directory you can only filter with exclude_options. If the bucket have many files you get the full file list each iteration. This can cause a waste of resources (bandwidth, for example).

If we add this prefix option, you get only the file list on your directory and not the complete list of files on the bucket.

Checklist

Author's Checklist

How to test this PR locally

Related issues

Use cases

If you share the bucket with another applications or you need get files only on specific sub directory.

Screenshots

Logs

cla-checker-service[bot] commented 3 years ago

💚 CLA has been signed

jalonsoa commented 3 years ago

/retest