# Logstash Adds unwanted records

**URL:** <https://discuss.elastic.co/t/logstash-adds-unwanted-records/87298>\
**Category:** Logstash\
**Created:** [May 26, 2017, 9:35pm UTC](https://discuss.elastic.co/t/logstash-adds-unwanted-records/87298 "2017-05-26T21:35:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lorenc\_Hysi](https://avatars.discourse-cdn.com/v4/letter/l/848f3c/32.png) [@Lorenc\_Hysi](https://discuss.elastic.co/u/Lorenc_Hysi)\
**Post date:** [May 26, 2017, 9:35pm UTC](https://discuss.elastic.co/t/logstash-adds-unwanted-records/87298/1 "2017-05-26T21:35:09Z")

</div>

Hello,

I have logstash with the following config:  
Kafka Input  
Filter metrics  
Syslog Output  
File Output

Logstash is reading from a kafka topic as type plain

However at different points in time after it has consumed some messages in kafka Logstash will also spit out the following line:  
May 26 21:09:00 %{host} LOGSTASH[-]: "_actual name of host_"

This lines are not present in the kafka topics so why is Logstash creating these records, and how can i stop it from happening?

Also another question. How can i actually have the %{host} display the actual host instead of %{host}

---

<div class="post-metadata">

**Author:** ![Lorenc\_Hysi](https://avatars.discourse-cdn.com/v4/letter/l/848f3c/32.png) [@Lorenc\_Hysi](https://discuss.elastic.co/u/Lorenc_Hysi)\
**Post date:** [May 26, 2017, 10:02pm UTC](https://discuss.elastic.co/t/logstash-adds-unwanted-records/87298/2 "2017-05-26T22:02:29Z")

</div>

This seems to be happening every 5 seconds btw. Could this be related to the filter? or some other option in logstash that does anything every 5 seconds?

---

<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:** [June 23, 2017, 10:02pm UTC](https://discuss.elastic.co/t/logstash-adds-unwanted-records/87298/3 "2017-06-23T22:02:40Z")

</div>

Closed on June 23, 2017, 10:02pm UTC

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