-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Put default options in config/startup.options #5303
Comments
@untergeek as we spoke in the standup today, this idea is being implemented as a |
This |
hmm, actually I am not sure we need to muddle |
logstash will by default fetch the LOGSTASH_HOME/conf/logstash.yml (overridable by LS_SETTINGS_DIR) and load it programatically, it is not fed through the cli. All options passed in the cli will override the ones in the logstash.yml (which in turn override the default settings, encoded in logstash-core/lib/logstash/environment.rb) |
can we make it LOGSTASH_HOME/config, so it matches the directory pattern used by Elasticsearch? |
+1 to make it |
Fixed in #5341 |
Working on the packaging system has shown me how painful it is to manage defaults in each of the different init styles (each variant of upstart; SYSV, systemd). We should have Logstash pull from a standard location in the LOGSTASH_HOME path of
/usr/share/logstash/
, I would propose/usr/share/logstash/config/startup.options
.Everything that normally goes in
/etc/default/logstash
or/etc/sysconfig/logstash
, or manually inserted into the init script should be in thisstartup.options
file, which currently looks like this:JVM options should be moved to
config/jvm.options
as described in #5302, and anything else goes here.This results in init scripts, regardless of flavor, reading the default config file, or an alternate flagged path. As far as
nice
levels,LS_USER
,LS_GROUP
,LS_OPEN_FILES
and such go, these are defaults used by thepleaserun
wrapper I'm working on to generate the init scripts. If you change these, you should re-run thesystem-install
script inbin
. It would read these settings and re-create the init script with the option changes.The text was updated successfully, but these errors were encountered: