# Kafka not reading the logstash logs

**URL:** <https://discuss.elastic.co/t/kafka-not-reading-the-logstash-logs/81419>\
**Category:** Logstash\
**Created:** [April 6, 2017, 6:38am UTC](https://discuss.elastic.co/t/kafka-not-reading-the-logstash-logs/81419 "2017-04-06T06:38:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raja1](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Raja1](https://discuss.elastic.co/u/Raja1)\
**Post date:** [April 6, 2017, 6:38am UTC](https://discuss.elastic.co/t/kafka-not-reading-the-logstash-logs/81419/1 "2017-04-06T06:38:17Z")

</div>

Hi,

I have done the below configuration. I am able start the logstash but kafka not reading the logs. Please help me to resolve this issue.

input {  
file{

path=\> ["/etc/logstash/\*.log"]  
}  
}  
output{  
kafka  
{  
bootstrap\_servers =\> 'server\_ip:9092'  
topic\_id =\> 'poc'  
}

}

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 6, 2017, 8:25am UTC](https://discuss.elastic.co/t/kafka-not-reading-the-logstash-logs/81419/2 "2017-04-06T08:25:17Z")

</div>

What's in Logstash's logs? Is it able to connect to Kafka? Is it reading any logs? With your current configuration Logstash will tail files in /etc/logstash so unless new data is appended to the files nothing will happen.

---

<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:** [May 4, 2017, 8:25am UTC](https://discuss.elastic.co/t/kafka-not-reading-the-logstash-logs/81419/3 "2017-05-04T08:25:38Z")

</div>

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