@Youssef_El (Youssef El) posted a new topic, subject "Enable to connect Logstash to Kafka". It read:

   Hello,
    
    I'm trying to connect Kafka to logastash by making kafka input in logstash config file ,but i'm confused with kafka bootstrap_servers who is hosted in hortonworks platform .
    
    In ambari UI is mentioned that kafka listen on port 6667 but in Elastic documentation is mentioned port number 9092.
    
    Thanks.

Then @duccanh0022 (Canh.Bui) said

    Hello, this is my config  
    input {  
    kafka {  
    bootstrap_servers => ["IP_ADDRESS_XXXXX:9092"]  
    topics => ["topic1"]  
    }  
    }

So @Youssef_El (Youssef El) replied

    Hi,  
    This is what i got in the error message with 9092 and 6667 ports .
    
    [2018-11-21T15:27:22,972][WARN ][org.apache.kafka.clients.NetworkClient] [Consumer clientId=logstash-0, groupId=logstash] Connection to node -1 could not be established. Broker may not be available.

@system (system) replied

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


{'source': 'discourse', 'url': 'https://discuss.elastic.co/t/enable-to-connect-logstash-to-kafka/157563', 'title': 'Enable to connect Logstash to Kafka', 'views': 1034, 'has_accepted_answer': False, 'word_count': 126, 'like_count': 0, 'reply_count': 1, 'participant_count': 2, 'posts': 4, 'tags': '', 'author': '@Youssef_El (Youssef El)', 'participants': '@Youssef_El (Youssef El), @duccanh0022 (Canh.Bui), @system (system)', 'image_url': [None], 'created_at': '2018-11-20T14:15:48.070Z', 'last_posted_at': '2018-12-19T15:34:24.284Z'}