# Heartbeat activemq monitor without error in activemq.log

**URL:** <https://discuss.elastic.co/t/heartbeat-activemq-monitor-without-error-in-activemq-log/249351>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [September 21, 2020, 11:53am UTC](https://discuss.elastic.co/t/heartbeat-activemq-monitor-without-error-in-activemq-log/249351 "2020-09-21T11:53:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rino](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rino/32/75931_2.png) [@rino](https://discuss.elastic.co/u/rino)\
**Post date:** [September 21, 2020, 11:53am UTC](https://discuss.elastic.co/t/heartbeat-activemq-monitor-without-error-in-activemq-log/249351/1 "2020-09-21T11:53:40Z")

</div>

Hi,

We're monitoring the uptime of our activemq servers (specificly the openwire port our queue is using). The problem is, with the below tcp monitor, it leaves behind some ugly logging in the activemq log. i wonder if it is possible to configure heartbeat in such a way, that it plays more nice with activemq ?

heartbeat activemq tcp monitor :

```
- type: tcp
  id: activemq-openwire-prd
  name: ActiveMQ OpenWire prd
  enabled: true
  schedule: '@every 30s'
  hosts: ["amqserver1:61616", "amqserver2:61616"]
  ipv4: true
  ipv6: false
  mode: any

```

activemq.log:

```
Transport Connection to: tcp://xx.yy.zz.aaa:38432 failed: java.io.EOFException | org.apache.activemq.broker.TransportConnection.Transport | ActiveMQ Transport: tcp:///ss.yy.zz.aa:38432@61616
```

---

<div class="post-metadata">

**Author:** ![rino](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rino/32/75931_2.png) [@rino](https://discuss.elastic.co/u/rino)\
**Post date:** [September 25, 2020, 7:30am UTC](https://discuss.elastic.co/t/heartbeat-activemq-monitor-without-error-in-activemq-log/249351/2 "2020-09-25T07:30:05Z")

</div>

No one? What about maybe building a custom monitor for this ?

---

<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:** [October 15, 2020, 2:45am UTC](https://discuss.elastic.co/t/heartbeat-activemq-monitor-without-error-in-activemq-log/249351/3 "2020-10-15T02:45:45Z")

</div>

Apologies for the late reply here. We probably won't make a dedicated check for activemq. Have you tried sending the correct header bytes from heartbeat?

---

<div class="post-metadata">

**Author:** ![rino](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rino/32/75931_2.png) [@rino](https://discuss.elastic.co/u/rino)\
**Post date:** [October 16, 2020, 9:35am UTC](https://discuss.elastic.co/t/heartbeat-activemq-monitor-without-error-in-activemq-log/249351/4 "2020-10-16T09:35:07Z")

</div>

What headers do you mean? Can i also specify headers on a tcp monitor ?

---

<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:** [October 16, 2020, 1:03pm UTC](https://discuss.elastic.co/t/heartbeat-activemq-monitor-without-error-in-activemq-log/249351/5 "2020-10-16T13:03:08Z")

</div>

It's a bit hacky, but you can send whatever bytes you like as a header, and check the response in TCP. [https://www.elastic.co/guide/en/beats/heartbeat/current/monitor-tcp-options.html#monitor-tcp-check](https://www.elastic.co/guide/en/beats/heartbeat/current/monitor-tcp-options.html#monitor-tcp-check)

We will likely offer a way to script custom checks with javascript as part of synthetics in the future, stay tuned for more there as the repo isn't public yet. We announced the browser based part during elasticon, but we'll probably add API journey support in the future.

---

<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:** [November 13, 2020, 3:03pm UTC](https://discuss.elastic.co/t/heartbeat-activemq-monitor-without-error-in-activemq-log/249351/6 "2020-11-13T15:03:11Z")

</div>

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