# Heartbeat Status logged to /var/log/messages

**URL:** <https://discuss.elastic.co/t/heartbeat-status-logged-to-var-log-messages/105756>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [October 30, 2017, 11:35am UTC](https://discuss.elastic.co/t/heartbeat-status-logged-to-var-log-messages/105756 "2017-10-30T11:35:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![arun\_prasath1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arun_prasath1/32/49539_2.png) [@arun\_prasath1](https://discuss.elastic.co/u/arun_prasath1)\
**Post date:** [October 30, 2017, 11:35am UTC](https://discuss.elastic.co/t/heartbeat-status-logged-to-var-log-messages/105756/1 "2017-10-30T11:35:03Z")

</div>

Heartbeat is configured in Redhat and status logs for each URL that heartbeat validates sends the log information to /var/log/messages. This file is growing like anything. Is there a way to stop/suppress logging the heartbeat audit logs to /var/log/messages.

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [October 30, 2017, 12:02pm UTC](https://discuss.elastic.co/t/heartbeat-status-logged-to-var-log-messages/105756/2 "2017-10-30T12:02:51Z")

</div>

Hi @arun_prasath1,

Could you post an example of some of those? In general, you can tweak logging settings, take a look to [https://www.elastic.co/guide/en/beats/heartbeat/current/configuration-logging.html](https://www.elastic.co/guide/en/beats/heartbeat/current/configuration-logging.html) for details on how to do it.

Best regards

---

<div class="post-metadata">

**Author:** ![arun\_prasath1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arun_prasath1/32/49539_2.png) [@arun\_prasath1](https://discuss.elastic.co/u/arun_prasath1)\
**Post date:** [October 30, 2017, 12:10pm UTC](https://discuss.elastic.co/t/heartbeat-status-logged-to-var-log-messages/105756/3 "2017-10-30T12:10:00Z")

</div>

I messed the code. I found the issue and followed the logging code in the URL mentioned. it worked. Great thanks Exekias for links.

---

<div class="post-metadata">

**Author:** ![arun\_prasath1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arun_prasath1/32/49539_2.png) [@arun\_prasath1](https://discuss.elastic.co/u/arun_prasath1)\
**Post date:** [October 30, 2017, 12:37pm UTC](https://discuss.elastic.co/t/heartbeat-status-logged-to-var-log-messages/105756/4 "2017-10-30T12:37:03Z")

</div>

Hi Exekias, I have the logging code like below. The log file is created under /var/log/heartbeat but still it is logging to /var/log/messages as well. So in two places the logs are logged. How to stop logging to path /var/log/messages file.

logging.level: warning  
logging.to\_files: true  
logging.to\_syslog: false  
logging.files:  
path: /var/log/heartbeat  
name: heartbeat  
keepfiles: 7  
permissions: 0600

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [October 30, 2017, 12:52pm UTC](https://discuss.elastic.co/t/heartbeat-status-logged-to-var-log-messages/105756/5 "2017-10-30T12:52:46Z")

</div>

Could you please share the version and setup package you used to deploy Hearbeat? I'll have a look

---

<div class="post-metadata">

**Author:** ![arun\_prasath1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arun_prasath1/32/49539_2.png) [@arun\_prasath1](https://discuss.elastic.co/u/arun_prasath1)\
**Post date:** [October 30, 2017, 3:09pm UTC](https://discuss.elastic.co/t/heartbeat-status-logged-to-var-log-messages/105756/6 "2017-10-30T15:09:15Z")

</div>

I have two instances of filebeat running in the server for two environment. It seems below lines causes to record to /var/log/messages. Even output.console: pretty: false causing to record the logs to /var/log/messages. so I have commented out the below lines.

output.console:  
pretty: false

sorry for late response. I have below versions.  
filebeat-5.2.2-1.x86\_64  
heartbeat-5.4.0-1.x86\_64

---

<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 27, 2017, 3:09pm UTC](https://discuss.elastic.co/t/heartbeat-status-logged-to-var-log-messages/105756/7 "2017-11-27T15:09:53Z")

</div>

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