# Filebeat: Utilizing Google Pub/Sub to Read Logs from Google Cloud Storage – Equivalent to SQS in AWS

**URL:** <https://discuss.elastic.co/t/filebeat-utilizing-google-pub-sub-to-read-logs-from-google-cloud-storage-equivalent-to-sqs-in-aws/349361>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 14, 2023, 11:42am UTC](https://discuss.elastic.co/t/filebeat-utilizing-google-pub-sub-to-read-logs-from-google-cloud-storage-equivalent-to-sqs-in-aws/349361 "2023-12-14T11:42:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![b2ron](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@b2ron](https://discuss.elastic.co/u/b2ron)\
**Post date:** [December 14, 2023, 11:42am UTC](https://discuss.elastic.co/t/filebeat-utilizing-google-pub-sub-to-read-logs-from-google-cloud-storage-equivalent-to-sqs-in-aws/349361/1 "2023-12-14T11:42:57Z")

</div>

I have applications that can only write to either AWS S3 or Google Cloud Storage. Every hour, these applications generate a large number of small log files. Previously, these logs were written to AWS S3 with notifications sent to AWS SQS. Using Filebeat with input type: aws-s3 and specifying the queue\_url successfully read the SQS queue, retrieving the logs from AWS S3.

Now the applications write logs to Google Cloud Storage. If I use Filebeat with type: gcs, Filebeat saves the offset for each file (of which there are a large number). If I set up notifications for newly created files in Google Cloud Storage to Google Pub/Sub. Filebeat with input type: gcp-pubsub only retrieves notifications, not the actual logs.

Is there a mechanism in Filebeat to use Pub/Sub similar to SQS? Of course, it's possible to additionally configure DataFlow to write the contents of files from Google Cloud Storage to Google Pub/Sub, but I would like to avoid that if possible.

---

<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:** [January 11, 2024, 1:43pm UTC](https://discuss.elastic.co/t/filebeat-utilizing-google-pub-sub-to-read-logs-from-google-cloud-storage-equivalent-to-sqs-in-aws/349361/2 "2024-01-11T13:43:13Z")

</div>

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