I was trying to find a way to connect logstash input to mqtt…

I didn’t want to code a ruby plugin, as I don’t know ruby… then I saw logstash’s websocket input… googled “mqtt mosquitto websocket”… humm seems simple but no in fact it’s not so simple 😉

So I’ve managed to make it working with apache-websocket plus mod_websocket_mosquitto

Also, besides iptables considerations (open 1883/80/443 ports), I’ve had to allow httpd to connect to network, as I have selinux enabled centos :

[ user@host ] setsebool -P httpd_can_network_connect 1

The final solution (mod_websocket_mosquitto) was found on Digits Domotica Blog

Leave a Reply

Your email address will not be published. Required fields are marked *

Bienvenue

Ce blog est un bloc-note de choses et d’autres techniques 🙂

Let’s connect !