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

Add possibility to configure connection options in MQTT output plugin #172

Closed
tbarthelet opened this issue Sep 12, 2019 · 3 comments
Closed

Comments

@tbarthelet
Copy link

Hi,
When connecting to an external MQTT broker, additional information is usually required on top of broker url and port, like credentials for example.
It would be great to be able to pass the "options" object in the MQTT output plugin configuration which would be taken into account by the mqtt.connect function according to the mqtt.js doc:
https://www.npmjs.com/package/mqtt#client

@megastef
Copy link
Contributor

Hi, it makes sense to add all options to the config.
What happens when you add credentials in the URL? e.g.

mqtt://user:[email protected]:1883

This could be a workaround until we have a new release.

@megastef
Copy link
Contributor

Changes are made in commit 186930b

Please try by installing logagent from git sudo npm install -g https://github.com/sematext/logagent-js.git before we make a new release.

@tbarthelet
Copy link
Author

It works great. Thank you very much for the quick fix!

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