# Pubsub input plugin problem

**URL:** <https://discuss.elastic.co/t/pubsub-input-plugin-problem/66126>\
**Category:** Logstash\
**Created:** [November 15, 2016, 2:06pm UTC](https://discuss.elastic.co/t/pubsub-input-plugin-problem/66126 "2016-11-15T14:06:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shushu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shushu/32/10037_2.png) [@shushu](https://discuss.elastic.co/u/shushu)\
**Post date:** [November 15, 2016, 2:06pm UTC](https://discuss.elastic.co/t/pubsub-input-plugin-problem/66126/1 "2016-11-15T14:06:50Z")

</div>

Hi,  
Trying to use [https://github.com/Wondermall/logstash-input-google-cloud-pubsub](https://github.com/Wondermall/logstash-input-google-cloud-pubsub)  
I think I was able to configure all needed, but I am getting error saying:  
[2016-11-15T15:01:36,802][ERROR][logstash.agent] fetched an invalid config {:config=\>"input {\n google-cloud-pubsub {\n project =\> "test-hbase-spark"\n keyfile =\> "/home/shushu/code/gcp/gcp/json"\n topic =\> "events-temp"\n subscription =\> "logstash"\n }\n}\noutput {\n elasticsearch {\n hosts =\> ["localhost:9200"]\n }\n}\n\n", :reason=\>"undefined local variable or method `cloud' for #LogStash::Pipeline:0x2bbebf64"}

In addition, I am trying to make it work with logstash 5.0, which might cause other problems - but seems kinda backward compatible right now.

Any help would be appreciated.

---

<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:** [December 13, 2016, 2:06pm UTC](https://discuss.elastic.co/t/pubsub-input-plugin-problem/66126/2 "2016-12-13T14:06:59Z")

</div>

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