# Filebeat to GCP PubSub

**URL:** <https://discuss.elastic.co/t/filebeat-to-gcp-pubsub/262859>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 1, 2021, 4:08pm UTC](https://discuss.elastic.co/t/filebeat-to-gcp-pubsub/262859 "2021-02-01T16:08:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MMH](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mmh/32/54449_2.png) [@MMH](https://discuss.elastic.co/u/MMH)\
**Post date:** [February 1, 2021, 4:08pm UTC](https://discuss.elastic.co/t/filebeat-to-gcp-pubsub/262859/1 "2021-02-01T16:08:20Z")

</div>

I want to setup the environment similar to this:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/0/50aafcafda5b6290a0bcd0d98567c918472832db.png)  
but to use GCP PubSub instead of Kafka.

I know, that Filebeat does not have a PubSub output.  
What is the easiest way to achieve this? I know, that Logstash can be used to get data from Filebeat and push it to PubSub. But installing and configuring a Logstash instance on each server from which I want to gather logs seems like overkill.  
Any ideas on how to achieve it?

---

<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:** [March 1, 2021, 6:09pm UTC](https://discuss.elastic.co/t/filebeat-to-gcp-pubsub/262859/2 "2021-03-01T18:09:05Z")

</div>

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