# Configuration issues - Filebeat for shipping messages from a Kafka topic to Elasticsearch

**URL:** <https://discuss.elastic.co/t/configuration-issues-filebeat-for-shipping-messages-from-a-kafka-topic-to-elasticsearch/327315>\
**Category:** Beats\
**Tags:** docker, filebeat\
**Created:** [March 9, 2023, 1:04am UTC](https://discuss.elastic.co/t/configuration-issues-filebeat-for-shipping-messages-from-a-kafka-topic-to-elasticsearch/327315 "2023-03-09T01:04:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dvoracek-martin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dvoracek-martin/32/118224_2.png) [@dvoracek-martin](https://discuss.elastic.co/u/dvoracek-martin)\
**Post date:** [March 9, 2023, 1:04am UTC](https://discuss.elastic.co/t/configuration-issues-filebeat-for-shipping-messages-from-a-kafka-topic-to-elasticsearch/327315/1 "2023-03-09T01:04:01Z")

</div>

Hi! I'd like to have Filebeat set up the way that it would consume messages from Kafka topic and then send them to Elasticsearch. Is there a way, how to set it all up in docker-compose? I could register Logstash as a Kafka consumer so I assume that it should be also possible for Filebeat. In the log, I can see that it loaded the config file. I don't see it, however, in the list of Kafka's consumers. So Filebeat doesn't consume any messages, even though they are in Kafka. Can somebody point me in the right direction? I assume that it should be a really basic configuration. Yet, I'm missing something.

The FIlebeat part of docker-compose.yml:  
` filebeat:`  
` depends_on:`  
` - kafka`  
` image: docker.elastic.co/beats/filebeat:7.9.2`  
` container_name: filebeat`  
` volumes:`  
` - "./filebeat.yml"`

the content of the filebeat.yml file:  
`filebeat.inputs:`  
` - type: kafka`  
` hosts:`  
` - kafka:29092`  
` topics: ["progress-raspberry"]`  
` client_id: "filebeat"`  
` group_id: "filebeat"`

`output.elasticsearch:`  
` hosts: ["elasticsearch:9200"]`

---

<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:** [April 6, 2023, 3:04am UTC](https://discuss.elastic.co/t/configuration-issues-filebeat-for-shipping-messages-from-a-kafka-topic-to-elasticsearch/327315/2 "2023-04-06T03:04:51Z")

</div>

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