# Apache kafka heartbeat creation

**URL:** <https://discuss.elastic.co/t/apache-kafka-heartbeat-creation/190016>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [July 11, 2019, 1:05pm UTC](https://discuss.elastic.co/t/apache-kafka-heartbeat-creation/190016 "2019-07-11T13:05:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neha\_Chaturvedi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neha_chaturvedi/32/49896_2.png) [@Neha\_Chaturvedi](https://discuss.elastic.co/u/Neha_Chaturvedi)\
**Post date:** [July 11, 2019, 1:05pm UTC](https://discuss.elastic.co/t/apache-kafka-heartbeat-creation/190016/1 "2019-07-11T13:05:52Z")

</div>

Hi Team ,

I am unable to create heartbeat monitors for the apache kafka endpoints.  
Can some one please help me out.

heartbeat.yml

- type: http  
urls: ["[http://localhost:9092](http://localhost:9092)"]  
schedule: '\*/10 \* \* \* \* \* \*'

Logs in kibana:  
{  
"\_index": "heartbeat-7.2.0-2019.07.09-000001",  
"\_type": "\_doc",  
"\_id": "hRIi4WsBeyb-AKwKKVP1",  
"\_version": 1,  
"\_score": null,  
"\_source": {  
"@timestamp": "2019-07-11T13:04:00.001Z",  
"ecs": {  
"version": "1.0.0"  
},  
"summary": {  
"up": 0,  
"down": 1  
},  
"http": {  
"rtt": {  
"validate": {  
"us": 0  
},  
"content": {  
"us": 9223372036854776  
}  
}  
},  
"event": {  
"dataset": "uptime"  
},  
"tcp": {  
"rtt": {  
"connect": {  
"us": 7000  
}  
}  
},  
"monitor": {  
"duration": {  
"us": 11000  
},  
"name": "",  
"type": "http",  
"id": "auto-http-0X258A9A4A7CF070C5",  
"check\_group": "5378aec8-a3dc-11e9-aed0-005056bdb4d4",  
"ip": "127.0.0.1",  
"status": "down"  
},  
"host": {  
"name": "VDMPAPIDEV01012"  
},  
"agent": {  
"version": "7.2.0",  
"type": "heartbeat",  
"ephemeral\_id": "90658818-932f-48ae-99e8-6ef14e9a712a",  
"hostname": "VDMPAPIDEV01012",  
"id": "f886e3c6-5d5d-469d-8768-b5380c650dcc"  
},  
"observer": {  
"hostname": "VDMPAPIDEV01012"  
},  
"resolve": {  
"ip": "127.0.0.1",  
"rtt": {  
"us": 3000  
}  
},  
"url": {  
"full": "[http://localhost:9092](http://localhost:9092)",  
"scheme": "http",  
"domain": "localhost",  
"port": 9092  
},  
"error": {  
"type": "io",  
"message": "Get [http://localhost:9092](http://localhost:9092): unexpected EOF"  
}  
},  
"fields": {  
"@timestamp": [  
"2019-07-11T13:04:00.001Z"  
]  
},  
"sort": [  
1562850240001  
]  
}

Its showing down.

but the broker is working.

I am unable to

---

<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:** [July 11, 2019, 1:59pm UTC](https://discuss.elastic.co/t/apache-kafka-heartbeat-creation/190016/2 "2019-07-11T13:59:11Z")

</div>

Can you ping that URL with cURL? Is that an HTTP endpoint or for the kafka protocol? If It's not HTTP you can use `type: tcp`

---

<div class="post-metadata">

**Author:** ![Neha\_Chaturvedi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neha_chaturvedi/32/49896_2.png) [@Neha\_Chaturvedi](https://discuss.elastic.co/u/Neha_Chaturvedi)\
**Post date:** [July 11, 2019, 2:16pm UTC](https://discuss.elastic.co/t/apache-kafka-heartbeat-creation/190016/3 "2019-07-11T14:16:08Z")

</div>

Hi ,

It's a Kafka protocol I hope which will work on the port 9092,that's Kafka broker.

Thanks,

Neha

---

<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:** [July 11, 2019, 2:16pm UTC](https://discuss.elastic.co/t/apache-kafka-heartbeat-creation/190016/4 "2019-07-11T14:16:58Z")

</div>

In that case you'll need to use a plain TCP check as described.

---

<div class="post-metadata">

**Author:** ![Neha\_Chaturvedi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neha_chaturvedi/32/49896_2.png) [@Neha\_Chaturvedi](https://discuss.elastic.co/u/Neha_Chaturvedi)\
**Post date:** [July 11, 2019, 2:18pm UTC](https://discuss.elastic.co/t/apache-kafka-heartbeat-creation/190016/5 "2019-07-11T14:18:12Z")

</div>

Hi ,

If you set up Apache Kafka

[https://medium.com/@shaaslam/installing-apache-kafka-on-windows-495f6f2fd3c8](https://medium.com/@shaaslam/installing-apache-kafka-on-windows-495f6f2fd3c8)

Then in this port 9092 is my port to work.

Which is not working.

Thank s,

Neha

---

<div class="post-metadata">

**Author:** ![Neha\_Chaturvedi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neha_chaturvedi/32/49896_2.png) [@Neha\_Chaturvedi](https://discuss.elastic.co/u/Neha_Chaturvedi)\
**Post date:** [July 11, 2019, 6:01pm UTC](https://discuss.elastic.co/t/apache-kafka-heartbeat-creation/190016/6 "2019-07-11T18:01:40Z")

</div>

Hi ,

I will try tomorrow morning.

One more scenario I am stuck , I want to use jmx between Kafka to ELK stack,

How I can enable jmx in the Kafka on windows system.

Thanks,

Neha

---

<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 8, 2019, 6:01pm UTC](https://discuss.elastic.co/t/apache-kafka-heartbeat-creation/190016/7 "2019-08-08T18:01:49Z")

</div>

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