# \[logstash.outputs.kafka \] Sending batch to Kafka failed

**URL:** <https://discuss.elastic.co/t/logstash-outputs-kafka-sending-batch-to-kafka-failed/212942>\
**Category:** Logstash\
**Created:** [December 24, 2019, 10:59am UTC](https://discuss.elastic.co/t/logstash-outputs-kafka-sending-batch-to-kafka-failed/212942 "2019-12-24T10:59:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gloria\_xie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gloria_xie/32/59919_2.png) [@gloria\_xie](https://discuss.elastic.co/u/gloria_xie)\
**Post date:** [December 24, 2019, 10:59am UTC](https://discuss.elastic.co/t/logstash-outputs-kafka-sending-batch-to-kafka-failed/212942/1 "2019-12-24T10:59:34Z")

</div>

hi everyone,  
i am using logstash to sink data from one kafka topic A to another kafka topic B;

whenever A produced data,B will receive it immediately;

everything works fine,but i keep getting this message in the log file:  
`**[2019-12-24T18:34:14,778][INFO][logstash.outputs.kafka] Sending batch to Kafka failed. Will retry after a delay. {:batch_size=>1, :failures=>1, :sleep=>0.01}**`

what dose this log message suggest?

Any idea will be appreciated!

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [December 25, 2019, 2:51pm UTC](https://discuss.elastic.co/t/logstash-outputs-kafka-sending-batch-to-kafka-failed/212942/2 "2019-12-25T14:51:43Z")

</div>

When the output gets an exception, it logs a warning before [adding](https://github.com/logstash-plugins/logstash-output-kafka/blob/b99d69d7abc9e6e55df8c2e6b1b0b943f9a69189/lib/logstash/outputs/kafka.rb#L271) the event to the array that needs to be retried. What is that warning?

---

<div class="post-metadata">

**Author:** ![gloria\_xie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gloria_xie/32/59919_2.png) [@gloria\_xie](https://discuss.elastic.co/u/gloria_xie)\
**Post date:** [December 27, 2019, 7:15am UTC](https://discuss.elastic.co/t/logstash-outputs-kafka-sending-batch-to-kafka-failed/212942/3 "2019-12-27T07:15:45Z")

</div>

Hi Badger,

i did't notice the warning,i will check if it exists,thanks a lot

---

<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:** [January 24, 2020, 7:15am UTC](https://discuss.elastic.co/t/logstash-outputs-kafka-sending-batch-to-kafka-failed/212942/4 "2020-01-24T07:15:46Z")

</div>

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