# Selectively download StackDriver files from google storage buckets with google input plugin

**URL:** <https://discuss.elastic.co/t/selectively-download-stackdriver-files-from-google-storage-buckets-with-google-input-plugin/192709>\
**Category:** Logstash\
**Created:** [July 29, 2019, 1:31pm UTC](https://discuss.elastic.co/t/selectively-download-stackdriver-files-from-google-storage-buckets-with-google-input-plugin/192709 "2019-07-29T13:31:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maineffort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maineffort/32/51134_2.png) [@maineffort](https://discuss.elastic.co/u/maineffort)\
**Post date:** [July 29, 2019, 1:31pm UTC](https://discuss.elastic.co/t/selectively-download-stackdriver-files-from-google-storage-buckets-with-google-input-plugin/192709/1 "2019-07-29T13:31:03Z")

</div>

I'd like to selectively download StackDriver log files from google storage bucket. The bucket is created for forwarding StackDriver logs and is therefore arranged in a directory fashion i.e. `logs-bucket/cloudaudit.googleapis.com/data_access/2019/07`. I am using the [google storage input plugin](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-google_cloud_storage.html#plugins-inputs-google_cloud_storage-file_matches). I have achieved something similar with the logstash input plugin for AWS, using the `prefix` key as described [here](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-s3.html#plugins-inputs-s3-prefix). Is this also possible for dowloading logs from GCS buckets?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 26, 2019, 1:31pm UTC](https://discuss.elastic.co/t/selectively-download-stackdriver-files-from-google-storage-buckets-with-google-input-plugin/192709/2 "2019-08-26T13:31:08Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
