# Partial log from heartbeat to logstash

**URL:** <https://discuss.elastic.co/t/partial-log-from-heartbeat-to-logstash/141637>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [July 25, 2018, 5:41pm UTC](https://discuss.elastic.co/t/partial-log-from-heartbeat-to-logstash/141637 "2018-07-25T17:41:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![esb\_elk](https://avatars.discourse-cdn.com/v4/letter/e/73ab20/32.png) [@esb\_elk](https://discuss.elastic.co/u/esb_elk)\
**Post date:** [July 25, 2018, 5:41pm UTC](https://discuss.elastic.co/t/partial-log-from-heartbeat-to-logstash/141637/1 "2018-07-25T17:41:19Z")

</div>

Hi,  
Im am using heartbeat 6.2.3 on my server.

I've configured the heartbeat.yml to look like this:

```
heartbeat.monitors:
 - type: http
 urls: ["http://myhost:port/continue/path"]
 schedule: '@every 10s'
 timeout: 16s

output.logstash:
 hosts: ["ip:port"]

```

Obviously the URL and and the "ip:port" are different and realistic (i chose not to write them here).  
I've started the hearbeat service and it work, but when i looked in my logstash all i saw was the same repeating log:

```
yyyy-mm-ddThh:mm:ss.000z myserver %{message}

```

Obviously the date and the time are changing every 10 seconds.  
"myserver" is the server where my heartbeat is running.  
I didn't receive any heartbeat info from my URL that I wrote in the heartbeat.yml , just the same message.  
Even after i changed the URL to a non-real URL i received the same message.

I wrote that the log is partial because it's refreshing every 10 seconds like i worte in the heartbeat.yml , but it doesn't get anything from the URL.

NOTE: there is also nothing in my kibana, not even the meassage from the logstash.

NOTE: Im using filebeat and metricbeat as well, and they are working just fine.

What should i do ?

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [July 25, 2018, 8:43pm UTC](https://discuss.elastic.co/t/partial-log-from-heartbeat-to-logstash/141637/2 "2018-07-25T20:43:59Z")

</div>

> [@esb\_elk](#):
>
> when i looked in my logstash all i saw was the same repeating log

Could you post your logstash pipeline configuration here?

Also, what happens if, just for testing purposes, temporarily take Logstash out of the picture and instead make `heartbeat` [output to your console](https://www.elastic.co/guide/en/beats/heartbeat/current/console-output.html)? What do you see?

---

<div class="post-metadata">

**Author:** ![esb\_elk](https://avatars.discourse-cdn.com/v4/letter/e/73ab20/32.png) [@esb\_elk](https://discuss.elastic.co/u/esb_elk)\
**Post date:** [July 26, 2018, 3:17pm UTC](https://discuss.elastic.co/t/partial-log-from-heartbeat-to-logstash/141637/3 "2018-07-26T15:17:44Z")

</div>

Unfortunatlly i don't have an acsses to the logstash pipeline because i don't have an acsses to the server where the logstash lives.

When i tried to direct the output to the console and nothing appeared, but i'm not sure that i configured the yml file right.

I deleted the logstash output and wrote instead:  
`output.console:`  
`pretty: true`

ANOTHER NOTE: when i saw my **metricbeat** logs in my logstash, i saw the same log as i saw from the heartbeat :  
`yyyy-mm-ddThh:mm:ss.000z myserver %{message}`  
The different is that i see the real message of the metricbeat log in the **kibana** while i see nothing from my heartbeat in the kibana - same log in logstash, different in kibana.

What does all those things means ?

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [July 27, 2018, 4:26pm UTC](https://discuss.elastic.co/t/partial-log-from-heartbeat-to-logstash/141637/4 "2018-07-27T16:26:49Z")

</div>

Could you run heartbeat with debug level logging on and post the result here? The command for that is:

```auto
heartbeat -e -E logging.level=debug

```

Note that this will output details about the HTTP URL you are trying to monitor with heartbeat, so you might want to mask the actual hostname, port, and path before posting here.

---

<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 24, 2018, 4:26pm UTC](https://discuss.elastic.co/t/partial-log-from-heartbeat-to-logstash/141637/5 "2018-08-24T16:26:49Z")

</div>

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