Hello Logstash team,
I successfully installed and started Logstash on Windows server 2016. My issue is that I use a proxy and, when I try to see a list of plugins in bin using the below command:
C:\Logstash\logstash-8.12.1\bin> .\logstash-plugin list
I edited C:/Logstash/logstash-8.12.1/lib/pluginmanager/proxy_support by adding:
set HTTP_PROXY=http://proxy.sec.private.nameofmycompany.io:80
set HTTPS_PROXY=https://proxy.sec.private.nameofmycompany.io:80
I get the error:
"Using bundled JDK: C:\Logstash\logstash-8.12.1\jdk\bin\java.exe"
SyntaxError: C:/Logstash/logstash-8.12.1/lib/pluginmanager/proxy_support.rb:26: syntax error, unexpected symbol literal
set HTTP_PROXY=http://proxy.sec.private.nameofmycompany.io
^
require at org/jruby/RubyKernel.java:1071
require at C:/Logstash/logstash-8.12.1/vendor/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85
<main> at C:\Logstash\logstash-8.12.1\lib\pluginmanager\main.rb:41
Before I attempted editing http.rb by adding the below but didn't work:
set HTTP_PROXY=http://proxy.sec.private.nameofmycompany.io:80
set HTTPS_PROXY=https://proxy.sec.private.nameofmycompany.io:80
I tried as well editing jvm.options to include the proxy settings:
-DproxyHost=proxy.sec.private.nameofmycompany.io
-DproxyPort=80
I also tried using:
LS_JAVA_OPTS=-Dhttp.proxyHost=proxy.sec.private.nameofmycompany.io -Dhttp.proxyPort=80
SET JRUBY_OPTS="-J-Dhttp.proxyHost=proxy.sec.private.nameofmycompany.io -J-Dhttp.proxyPort=80 -J-Dhttps.proxyHost=proxy.sec.private.nameofmycompany.io -J-Dhttps.proxyPort=80"
Any of these solutions seemed to work. Any help will be appreciated. thanks
Regards,
Tizi