# Kafka Logs not working

**URL:** <https://discuss.elastic.co/t/kafka-logs-not-working/147830>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 8, 2018, 9:05pm UTC](https://discuss.elastic.co/t/kafka-logs-not-working/147830 "2018-09-08T21:05:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adwaitjoshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adwaitjoshi/32/35098_2.png) [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)\
**Post date:** [September 8, 2018, 9:05pm UTC](https://discuss.elastic.co/t/kafka-logs-not-working/147830/1 "2018-09-08T21:05:37Z")

</div>

I installed FileBEat (Confirmed that its working) then I configured Kafka with the following configuration

```auto
- module: kafka
  # All logs
  log:
    enabled: true

    # Set custom paths for Kafka. If left empty,
    # Filebeat will look under /opt.
    var.kafka_home: /usr/share/kafka_2.12-2.0.0

    # Set custom paths for the log files. If left empty,
    # Filebeat will choose the paths depending on your OS.
    var.paths:
      - "/usr/share/kafka_2.12-2.0.0/controller.log*"
      - "/usr/share/kafka_2.12-2.0.0/server.log*"
      - "/usr/share/kafka_2.12-2.0.0/state-change.log*"
      - "/usr/share/kafka_2.12-2.0.0/kafka-*.log*"

```

When I start the FileBeat service, I dont see any logs on Kibana, I dont see any errors either. Ideas?

---

<div class="post-metadata">

**Author:** ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)\
**Post date:** [September 10, 2018, 1:42pm UTC](https://discuss.elastic.co/t/kafka-logs-not-working/147830/2 "2018-09-10T13:42:18Z")

</div>

Hi @adwaitjoshi 🙂

I think that your config is incorrect. You'll find logs under `logs` folder inside Kafka folder.

```auto
- module: kafka
  # All logs
  log:
    enabled: true

    # Set custom paths for Kafka. If left empty,
    # Filebeat will look under /opt.
    var.kafka_home: /usr/share/kafka_2.12-2.0.0

    # Set custom paths for the log files. If left empty,
    # Filebeat will choose the paths depending on your OS.
    var.paths:
      - "/usr/share/kafka_2.12-2.0.0/logs/controller.log*"
      - "/usr/share/kafka_2.12-2.0.0/logs/server.log*"
      - "/usr/share/kafka_2.12-2.0.0/logs/state-change.log*"
      - "/usr/share/kafka_2.12-2.0.0/logs/kafka-*.log*"

```

Best regards

---

<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 8, 2018, 1:42pm UTC](https://discuss.elastic.co/t/kafka-logs-not-working/147830/3 "2018-10-08T13:42:22Z")

</div>

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