Raw/Plaintext Kafka Input Failing when consuming Kafka data

Problem Description:

I am trying to consume Kafka data in graylog . I am not receiving msg on the input created . When I checked the log of graylog I find the below:

SERVER 1 : Kafka and zookeeper are running
SERVER 2 : Graylog server with input configured as Raw/Plaintext Kafka , bootstrap and zookeeper pointed to server 1

OS: centos 7

On server 1:
Kafka topic description

kafka-topics --zookeeper localhost:2181 --describe --topic new_topic
Topic: new_topic PartitionCount: 1 ReplicationFactor: 1 Configs:
Topic: new_topic Partition: 0 Leader: 0 Replicas: 0 Isr: 0

netstat -tunlp | grep -e “9092|2181|8082”
tcp6 0 0 :::8082 :::* LISTEN 28959/java
tcp6 0 0 :::9092 :::* LISTEN 28804/java
tcp6 0 0 :::2181 :::* LISTEN 28727/java

Resolved this issue .
Problem was related to hostname not getting resolved. I added hostname to /etc/resolve.conf in server 2 and it worked

1 Like

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