logstash
logstash copied to clipboard
Systemd unit declares EnvironmentFile=/etc/default/logstash but doesn't use variables
The Logstash systemd unit for Deb/RPMs declares the use of /etc/default/logstash
as EnvironmentFile
, but it does not use variables.
As such, any chances that the user makes in /etc/default/logstash
won't take effect in the daemon.
Logstash information:
Please include the following information:
- Logstash version (e.g.
bin/logstash --version
): 8.x - Logstash installation source: Deb/RPM
- How is Logstash being run: systemd
Potential Solution:
This could be solved in two different ways:
- Allow the systemd unit to read and use variables from /etc/default/logstash
- Allow the systemd unit to use globally declared environment variables to override certain settings.