# Filebeat to connect kafka

**URL:** <https://discuss.elastic.co/t/filebeat-to-connect-kafka/149702>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 24, 2018, 3:39pm UTC](https://discuss.elastic.co/t/filebeat-to-connect-kafka/149702 "2018-09-24T15:39:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yarle.lakshman](https://avatars.discourse-cdn.com/v4/letter/y/f1d935/32.png) [@yarle.lakshman](https://discuss.elastic.co/u/yarle.lakshman)\
**Post date:** [September 24, 2018, 3:39pm UTC](https://discuss.elastic.co/t/filebeat-to-connect-kafka/149702/1 "2018-09-24T15:39:34Z")

</div>

hi team ; i am getiing below error while logshishiping from filebeat to kafka; below are details. and exception , please help.

filebeat : filebeat-1.3.1-5.el7.x86\_64  
Kafka : confluent kafka 5.0

Filebeat config:

## [root@sd-e7ff-b05f system]# cat /etc/filebeat/filebeat.yml

filebeat.prospectors:

- input\_type: log  
paths:
  - /var/log/message1/\*  
registry\_file: /etc/filebeat/.filebeat.registry  
logging.files.keepfiles: 2  
logging.files.name: filebeat.log  
logging.files.path: /var/log/filebeat  
logging.level: debug  
logging.to\_files: true  
logging.to\_syslog: false  
output:  
kafka:  
enabled: true  
hosts: ["localhost:9092"]  
max\_message\_bytes: 1000000  
partition.round\_robin:  
reachable\_only: false  
required\_acks: -1  
topic: santhi

Exception :  
[root@XXXXXXXXsystem]# **/usr/bin/filebeat -c /etc/filebeat/filebeat.yml -e -v -d "\*"**  
2018/09/24 15:38:22.824848 beat.go:156: DBG Initializing output plugins  
2018/09/24 15:38:22.824888 **geolite.go:24: INFO GeoIP disabled: No paths were set under output.geoip.paths**  
**2018/09/24 15:38:22.824914 publish.go:269: INFO No outputs are defined. Please define one under the output section.**  
Error Initialising publisher: No outputs are defined. Please define one under the output section.  
2018/09/24 15:38:22.824933 beat.go:161: CRIT No outputs are defined. Please define one under the output section.

Please help on this issue.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [September 25, 2018, 6:04am UTC](https://discuss.elastic.co/t/filebeat-to-connect-kafka/149702/2 "2018-09-25T06:04:09Z")

</div>

Can you try to format your config above? I assume there is an error somewhere in the yaml file.

---

<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:** [October 23, 2018, 6:04am UTC](https://discuss.elastic.co/t/filebeat-to-connect-kafka/149702/3 "2018-10-23T06:04:17Z")

</div>

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