# Knowing when an event message get sent to pubsub

**URL:** <https://discuss.elastic.co/t/knowing-when-an-event-message-get-sent-to-pubsub/312987>\
**Category:** Logstash\
**Created:** [August 26, 2022, 4:14am UTC](https://discuss.elastic.co/t/knowing-when-an-event-message-get-sent-to-pubsub/312987 "2022-08-26T04:14:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Altiano\_Gerung](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/altiano_gerung/32/38040_2.png) [@Altiano\_Gerung](https://discuss.elastic.co/u/Altiano_Gerung)\
**Post date:** [August 26, 2022, 4:14am UTC](https://discuss.elastic.co/t/knowing-when-an-event-message-get-sent-to-pubsub/312987/1 "2022-08-26T04:14:01Z")

</div>

I'm using this plugin to send kafka events to pubsub,

> **[GitHub - logstash-plugins/logstash-output-google\_pubsub: Logstash output for...](https://github.com/logstash-plugins/logstash-output-google_pubsub)**
>
> Logstash output for sending events to the Google Pub/Sub service - GitHub - logstash-plugins/logstash-output-google\_pubsub: Logstash output for sending events to the Google Pub/Sub service

I'm running to some issue where I need to know when the message arrived at logstash and when it was attempted to be delivered to pubsub.

When I tried to enable log.level debug, the messages was too verbose than just the I was looking for (possibly the information is not there, haven't checked it because it was too verbose), is there any elegant way to know the delivery time to pubsub without digging too much in the log files?

PS:  
I tried this config in log4j, but it still doesn't emit the delivery time

```auto
logger.google_pubsuboutput.name = logstash.outputs.google_pubsub
logger.google_pubsuboutput.level = debug

```

---

<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:** [September 23, 2022, 4:14am UTC](https://discuss.elastic.co/t/knowing-when-an-event-message-get-sent-to-pubsub/312987/2 "2022-09-23T04:14:20Z")

</div>

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