# Logstash google pubsub output plugin

**URL:** <https://discuss.elastic.co/t/logstash-google-pubsub-output-plugin/343791>\
**Category:** Logstash\
**Created:** [September 25, 2023, 4:40pm UTC](https://discuss.elastic.co/t/logstash-google-pubsub-output-plugin/343791 "2023-09-25T16:40:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bala\_Joshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bala_joshi/32/125752_2.png) [@Bala\_Joshi](https://discuss.elastic.co/u/Bala_Joshi)\
**Post date:** [September 25, 2023, 4:40pm UTC](https://discuss.elastic.co/t/logstash-google-pubsub-output-plugin/343791/1 "2023-09-25T16:40:51Z")

</div>

hello All,

I am trying to injest to google pubsub topic from logstash server. Below are the configuration  
google\_pubsub {  
project\_id =\> "xx"  
topic =\> "xx"  
json\_key\_file =\> "xx"  
#Options for configuring the upload  
message\_count\_threshold =\> 1000  
delay\_threshold\_secs =\> 10  
id =\> "GOOGLE-PUBSUB"  
I am continuously receiving ":error=\>"io.grpc.StatusRuntimeException: DEADLINE\_EXCEEDED: deadline exceeded after 9999594176ns" errors and data is not injested. Can someone plesae help me out. I am using logstash version 7. Using system default java.  
Thanks

---

<div class="post-metadata">

**Author:** ![ashishtiwari1993](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashishtiwari1993/32/135241_2.png) [@ashishtiwari1993](https://discuss.elastic.co/u/ashishtiwari1993)\
**Post date:** [September 26, 2023, 10:21am UTC](https://discuss.elastic.co/t/logstash-google-pubsub-output-plugin/343791/2 "2023-09-26T10:21:32Z")

</div>

HI @Bala_Joshi, Welcome to the Elastic community.

As I tested with below conf

```json
output {
  google_pubsub {
    project_id => "elastic-community"
    topic => "test-logstash"
    json_key_file => "my-key.json"
  }
}

```

It pushed successfully.

This is the issue of timeout while publishing the message.

As I can check here [https://cloud.google.com/pubsub/docs/troubleshooting#publish-deadline-exceeded](https://cloud.google.com/pubsub/docs/troubleshooting#publish-deadline-exceeded) This is likely caused by a client side bottleneck, such as insufficient service CPUs, bad thread health, or network congestion.

You can try to tune `message_count_threshold` and `delay_threshold_secs` value and check what is the best fit.

---

<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:** [October 24, 2023, 10:21am UTC](https://discuss.elastic.co/t/logstash-google-pubsub-output-plugin/343791/3 "2023-10-24T10:21:45Z")

</div>

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