[IPV6 Only]: FileBeat Integration to Push Logs on KAFKA Topic

Hello Community,

Hope you are doing good in this pandemic.

I want to integrate FileBeat with Kafka, only on IPV6 K8S Cluster.

But I am getting the error " Failed to connect to broker http://[240b:x:x:x:x:x:x:5001]:32392: dial tcp: address http://[240b:x:x:x:x:x:x:5001]:32392: too many colons in address"

I am using FileBeat Version 7.0.0.

I assume that FileBeat Kafka Output module is not compatible with IPV6.

filebeat.yml

    filebeat.config:
      modules:
        path: ${path.config}/modules.d/*.yml
        reload.enabled: false
    logging.level: debug
    logging.to_files: true
    logging.files:
      path: /usr/share/filebeat/logs
      name: filebeat
      keepfiles: 7
      permissions: 0644
    output.kafka:
     hosts: ["http://240b:x:x:x:x:x:x:5001:32392"]
     topic: TEST-TOPIC

ALSO TRIED THIS (But didn't worked for me throwed same error message as above)

filebeat.yml (Replaced IPV6 with the hostname of Kafka server)

    filebeat.config:
      modules:
        path: ${path.config}/modules.d/*.yml
        reload.enabled: false
    logging.level: debug
    logging.to_files: true
    logging.files:
      path: /usr/share/filebeat/logs
      name: filebeat
      keepfiles: 7
      permissions: 0644
    output.kafka:
     **hosts: ["http://kafkahost:32392"]**
     topic: TEST-TOPIC

Prompt response is appreciated.

Do let me know if you need any thing else to debug this issue.

Regards,
Rudra Patel

Have you tried setting the hosts like this?

     hosts: ["240b:x:x:x:x:x:x:5001:32392"]

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