# Send heartbeat logs to multiple topics in Kafka

**URL:** <https://discuss.elastic.co/t/send-heartbeat-logs-to-multiple-topics-in-kafka/192306>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [July 25, 2019, 7:26pm UTC](https://discuss.elastic.co/t/send-heartbeat-logs-to-multiple-topics-in-kafka/192306 "2019-07-25T19:26:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roopam\_Rajvanshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roopam_rajvanshi/32/50962_2.png) [@Roopam\_Rajvanshi](https://discuss.elastic.co/u/Roopam_Rajvanshi)\
**Post date:** [July 25, 2019, 7:26pm UTC](https://discuss.elastic.co/t/send-heartbeat-logs-to-multiple-topics-in-kafka/192306/1 "2019-07-25T19:26:20Z")

</div>

Is it possible to send heartbeat logs to multiple topics in kafka based on a condition if a field exists or not? I want to send the logs to multiple topics in case the machine being pinged is down. The reason being that it would be easier to look into the downtime without having to go over the entire logs.

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [August 10, 2019, 2:15am UTC](https://discuss.elastic.co/t/send-heartbeat-logs-to-multiple-topics-in-kafka/192306/2 "2019-08-10T02:15:04Z")

</div>

I believe you'd need to route through logstash first to do this, but while I am a heartbeat expert I know very little about Kafka.

---

<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 7, 2019, 2:29am UTC](https://discuss.elastic.co/t/send-heartbeat-logs-to-multiple-topics-in-kafka/192306/3 "2019-09-07T02:29:32Z")

</div>

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