
This makes a whole host of changes. First we install logstash from the deb packages that are now available. This package sets up the logstash user, group, logrotate for log files, a conf.d dir, and an init script for a service for us. This means all of that stuff can be removed from puppet and be provided by the package instead. In addition to cleanup related to the package we remove things that no longer make sense with newer logstash. There is no more logstash web service for example use kibana instead. Also the distinction between agent and indexer is no longer strong and logstash has a separate shipper tool which should be used in place of the agent (though backward compat for the agent class is preserved by setting it up as an indexer using an agent config). Depends-On: I2354fbe9d3ab25134c52bfe58f562dfdf9ff6786 Change-Id: If3fa423a80a03d09993e58f6d68a3a212b457468
42 lines
1.0 KiB
Plaintext
42 lines
1.0 KiB
Plaintext
##############################
|
|
# Default settings for logstash
|
|
###############################
|
|
|
|
# Override Java location
|
|
#JAVACMD=/usr/bin/java
|
|
|
|
# Set a home directory
|
|
#LS_HOME=/var/lib/logstash
|
|
|
|
# Arguments to pass to logstash agent
|
|
# Single worker so multiline events work
|
|
LS_OPTS="-w 1"
|
|
|
|
# Arguments to pass to java
|
|
LS_HEAP_SIZE="2g"
|
|
#LS_JAVA_OPTS="-Djava.io.tmpdir=$HOME"
|
|
|
|
# pidfiles aren't used for upstart; this is for sysv users.
|
|
#LS_PIDFILE=/var/run/logstash.pid
|
|
|
|
# user id to be invoked as; for upstart: edit /etc/init/logstash.conf
|
|
#LS_USER=logstash
|
|
|
|
# logstash logging
|
|
#LS_LOG_FILE=/var/log/logstash/logstash.log
|
|
#LS_USE_GC_LOGGING="true"
|
|
|
|
# logstash configuration directory
|
|
#LS_CONF_DIR=/etc/logstash/conf.d
|
|
|
|
# Open file limit; cannot be overridden in upstart
|
|
#LS_OPEN_FILES=16384
|
|
|
|
# Nice level
|
|
#LS_NICE=19
|
|
|
|
# If this is set to 1, then when `stop` is called, if the process has
|
|
# not exited within a reasonable time, SIGKILL will be sent next.
|
|
# The default behavior is to simply log a message "program stop failed; still running"
|
|
KILL_ON_STOP_TIMEOUT=0
|