Environment variables in jvm.options
are not replaced by the JvmOptionsParser
#16444
Labels
jvm.options
are not replaced by the JvmOptionsParser
#16444
Logstash information:
Please include the following information:
bin/logstash --version
)Plugins installed: (
bin/logstash-plugin list --verbose
)JVM (e.g.
java -version
):If the affected version of Logstash is 7.9 (or earlier), or if it is NOT using the bundled JDK or using the 'no-jdk' version in 7.10 (or higher), please provide the following information:
java -version
)LS_JAVA_HOME
environment variable if set.OS version (
uname -a
if on a Unix-like system):Description of the problem including expected versus actual behavior:
In
jvm.options
logstash/config/jvm.options
Line 59 in 5195332
LOGSTASH_HOME
andLS_GC_LOG_FILE
but theJvmOptionsParser
don't apply any substitution of those. I think Logstash lost that function with PR #12530 , when switched the parsing of such file from bash to the Java CLI options composer. Before that, the resolution of environment variables was done bybash
.There could be a couple of solutions:
jvm.options
file.JvmOptionsParser
to replace with environment variables, if defined.Steps to reproduce:
Please include a minimal but complete recreation of the problem,
including (e.g.) pipeline definition(s), settings, locale, etc. The easier
you make for us to reproduce it, the more likely that somebody will take the
time to look at it.
LS_GC_LOG_FILE
on shellLS_GC_LOG_FILE
injvm.options
Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: