logstash安装组件时默认使用gem源,因为被墙导致安装时有如下报错,并无法继续:
WARNING: SSLSocket#session= is not supported

解决问题需要更换gem源为淘宝源,操作方法如下:
修改/opt/logstash/Gemfile文件,source改为淘宝源地址。https://mirrors.aliyun.com/rubygems/
注意,淘宝源地址已更改,ruby.taobao.com地址已经失效,使用此地址将会有下列错误,不能完成安装。

修改为淘宝源后,安装正常

本文链接地址: https://danteng.org/modification-of-logstash-gem-source/