To resolve this problem we have to setup the stunnel as proxy front of the logstash redis plug-in. Stunnel can create SSL connection with Azure redis and Stunnel provide non-ssl connection for the logstash redis plug-in.
port and also provide primary and secondary key(password).
$ sudo apt-get install stunnel
ConfigurationCreate a configuration for stunnel /etc/stunnel/stunnel.conf and put the following lines into the configure file.
setuid = root setgid = root pid = /var/run/stunnel-azureredis.pid debug = 7 output = /var/log/stunnel4/azureredis.log options = NO_SSLv2 options = NO_SSLv3 [azureredis] accept=127.0.0.1:6379 connect=<AZURE_REDIS_URL>:6380 client=yes TIMEOUTidle = 30
$ service stunnel4 restart
Install redis-cli to test the connection try to ping the redis azure it should reply as PONG
$ redis-cli -a <AZURE_REDIS_PASSWORD> 127.0.0.1:6379> ping PONG
Now you can make SSL connection with azure redis on SSL.