# Heartbeat input plugin

**URL:** https://discuss.elastic.co/t/heartbeat-input-plugin/288621
**Category:** Logstash
**Created:** [November 8, 2021, 12:15pm UTC](https://discuss.elastic.co/t/heartbeat-input-plugin/288621 "2021-11-08T12:15:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![BeMoore](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bemoore/32/58724_2.png) [@BeMoore](https://discuss.elastic.co/u/BeMoore)
#### Post date: [November 8, 2021, 12:15pm UTC](https://discuss.elastic.co/t/heartbeat-input-plugin/288621/1 "2021-11-08T12:15:33Z")

</div>

Hiya all,

if i want to change the input plugins listen port for heartbeat how can i do this?

the guide doesn't list it as an option

> **[Heartbeat input plugin | Logstash Reference \[7.15\] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-heartbeat.html)**

```auto
input {
  heartbeat {
    port => 2600
  }
}

```

generates this error [ERROR][logstash.inputs.heartbeat] Unknown setting 'port' for heartbeat

does the heartbeat plugin have a default port? how does it listen for events from heartbeat clients?

my heartbeat yml file is set to send to logstash ip:port... so the output should be fine...

do i have to specify beats instead of heartbeat??

---

<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: [November 8, 2021, 5:19pm UTC](https://discuss.elastic.co/t/heartbeat-input-plugin/288621/2 "2021-11-08T17:19:25Z")

</div>

> [@BeMoore](#):
>
> how does it listen for events from heartbeat clients?

It doesn't listen for anything, it just creates events out of nothing at a regular interval.

If you are trying to use the heartbeat beat for monitoring then you would use a beats input, not a heartbeat input. That does have a [port](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-beats.html#plugins-inputs-beats-port) option.

---

<div class="post-metadata">

### Author: ![BeMoore](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bemoore/32/58724_2.png) [@BeMoore](https://discuss.elastic.co/u/BeMoore)
#### Post date: [November 9, 2021, 9:50am UTC](https://discuss.elastic.co/t/heartbeat-input-plugin/288621/3 "2021-11-09T09:50:40Z")

</div>

right... so the logstash input plugin heartbeat doesn't listen.. just generates

so using the logstash beats input plugin on specified port will accept the heartbeat packets being sent to it by a heartbeat client.

cool

---

<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: [December 7, 2021, 9:50am UTC](https://discuss.elastic.co/t/heartbeat-input-plugin/288621/4 "2021-12-07T09:50:51Z")

</div>

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