# Couldn't find any input plugin named 'google\_pubsub'. Are you sure this is correct?

**URL:** <https://discuss.elastic.co/t/couldnt-find-any-input-plugin-named-google-pubsub-are-you-sure-this-is-correct/280218>\
**Category:** Logstash\
**Created:** [August 2, 2021, 12:14pm UTC](https://discuss.elastic.co/t/couldnt-find-any-input-plugin-named-google-pubsub-are-you-sure-this-is-correct/280218 "2021-08-02T12:14:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![devashishsingh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/devashishsingh/32/89628_2.png) [@devashishsingh](https://discuss.elastic.co/u/devashishsingh)\
**Post date:** [August 2, 2021, 12:14pm UTC](https://discuss.elastic.co/t/couldnt-find-any-input-plugin-named-google-pubsub-are-you-sure-this-is-correct/280218/1 "2021-08-02T12:14:36Z")

</div>

Hello,

I noticed Kibana is no longer having Google cloud Stackdriver logs. So I started my troubleshooting with logstash and debug the .conf file, here's what I got:

[2021-08-02T20:08:44,540][DEBUG][logstash.plugins.registry] Problems loading the plugin with {:type=\>"input", :name=\>"google\_pubsub"}  
[2021-08-02T20:08:44,566][FATAL][logstash.runner] The given configuration is invalid. Reason: Unable to configure plugins: (PluginLoadingError) Couldn't find any input plugin named 'google\_pubsub'. Are you sure this is correct? Trying to load the google\_pubsub input plugin resulted in this error: no such file to load -- logstash/inputs/google\_pubsub

Here's the google.conf file config:

input  
{  
google\_pubsub {  
project\_id =\> ""  
topic =\> ""  
subscription =\> ""  
json\_key\_file =\> "/opt/pubsubkey/pubsubkey.json"  
include\_metadata =\> true  
codec =\> "json"  
type =\> "gcp"  
}

```
heartbeat {
    interval => 10
    type => "heartbeat"
}

```

}  
filter {  
if [type] != "heartbeat" {  
mutate {  
add\_field =\> { "messageId" =\> "%{[@metadata][pubsub\_message][messageId]}" }  
}  
}  
}  
output  
{  
if [type] == "gcp" {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
index =\> "logstash-events-%{+YYYY.MM.dd}"  
}  
}

}

Is there anything which is changed about plugin but I have not even upgraded Elastic. It's on 7.9.2 still? Please help me to find out more on this.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 2, 2021, 2:25pm UTC](https://discuss.elastic.co/t/couldnt-find-any-input-plugin-named-google-pubsub-are-you-sure-this-is-correct/280218/2 "2021-08-02T14:25:36Z")

</div>

Have you installed the pubsub plugin?

---

<div class="post-metadata">

**Author:** ![devashishsingh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/devashishsingh/32/89628_2.png) [@devashishsingh](https://discuss.elastic.co/u/devashishsingh)\
**Post date:** [August 2, 2021, 4:02pm UTC](https://discuss.elastic.co/t/couldnt-find-any-input-plugin-named-google-pubsub-are-you-sure-this-is-correct/280218/3 "2021-08-02T16:02:22Z")

</div>

The issue has been resolved by installing the google-pubsub plugin. Unsure why it wasn't there when everything was working perfectly fine until last week.

Any guidance on if this has happened due to some misconfiguration or something else?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 3, 2021, 6:51am UTC](https://discuss.elastic.co/t/couldnt-find-any-input-plugin-named-google-pubsub-are-you-sure-this-is-correct/280218/4 "2021-08-03T06:51:50Z")

</div>

wild guess: Upgrade. If you installed via rpm/deb package, logstash might have been upgraded, which does not install that plugin automatically with the new version.

---

<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 31, 2021, 6:52am UTC](https://discuss.elastic.co/t/couldnt-find-any-input-plugin-named-google-pubsub-are-you-sure-this-is-correct/280218/5 "2021-08-31T06:52:04Z")

</div>

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