Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BrokerNotAvailableError: Broker not available #281

Open
tronghung-nguyen opened this issue Jul 31, 2021 · 4 comments
Open

BrokerNotAvailableError: Broker not available #281

tronghung-nguyen opened this issue Jul 31, 2021 · 4 comments

Comments

@tronghung-nguyen
Copy link

tronghung-nguyen commented Jul 31, 2021

Please help me !
I try connect logagent to kafka apache server
First I install Logagent and the Kafka plugins (assuming nodejs is installed already):
npm i -g '@'sematext/logagent
npm i -g logagent-output-kafka
npm i -g logagent-input-kafka
Then, I created file logagent-kafka-output.yml like you showed:
options:
includeOriginalLine: false
input:
files:
- '/var/log/apache2/access.log'

output:
kafka:
module: logagent-output-kafka
host: localhost
port: 9092
topic: test
requireAcks: 1
sslEnable: false
sslOptions:

image

@gr0
Copy link

gr0 commented Aug 3, 2021

Can you provide the Kafka version you are using?

@tronghung-nguyen
Copy link
Author

tronghung-nguyen commented Aug 3, 2021 via email

@gr0
Copy link

gr0 commented Aug 4, 2021

@hungnt31 I think I found the reason for the error you are seeing. It was already mentioned in the #119 and the solution was to provide the host and port of the Zookeeper instead of the Kafka broker. In such case the configuration for the output would look as follows:

output:
  kafka:
    module: logagent-output-kafka
    host: localhost
    port: 2181
    topic: test
    requireAcks: 1
    sslEnable: false
    sslOptions:
      - rejectUnauthorized: false

You can try that and see if that works for you.

@tronghung-nguyen
Copy link
Author

tronghung-nguyen commented Aug 4, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants