[Filebeat] module kafka var.kafka_home not work

  • Version: 7.13.1

  • Operating System: CentOS Linux release 7.6.1810 (Core)

  • Discuss Forum URL:

  • Steps to Reproduce:

    • Run: filebeat modules enable kafka
    • Edit: modules.d/kafka.yml
      # Module: kafka
      # Docs: https://www.elastic.co/guide/en/beats/filebeat/7.x/filebeat-module-kafka.html
      - module: kafka
        # All logs
          enabled: true
          # Set custom paths for Kafka. If left empty,
          # Filebeat will look under /opt.
          var.kafka_home: /Users/10019607/opt/kafka*
          # Set custom paths for the log files. If left empty,
          # Filebeat will choose the paths depending on your OS.
    • Check Log:
      2021-06-07T13:56:44.698+0800    INFO    log/input.go:157        Configured paths: [/opt/kafka*/logs/controller.log* /opt/kafka*/logs/server.log* /opt/kafka*/logs/state-change.log* /opt/kafka*/logs/kafka-*.log*]
  • Expect Result:
    Configured paths: [/Users/10019607/opt/kafka*/logs/controller.log* /Users/10019607/opt/kafka*/logs/server.log* /Users/10019607/opt/kafka*/logs/state-change.log* /Users/10019607/opt/kafka*/logs/kafka-.log]

  • Bug Fix?:

I had created a pull request fo fix this, [Filebeat] Fix fileset evaluateVars by yandd · Pull Request #26198 · elastic/beats · GitHub

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