Logstash command-line options
There are various command-line options to use with Logstash. The various command-line options can be viewed using the following command:
bin/logstash --help
This displays various options, which are described here.
To specify the name of Logstash instance:
bin/logstash --node.name NODENAME
To run Logstash using a configuration file or directory containing configuration files, use the following commands:
bin/logstash -f CONFIGPATH
Or use the following command:
bin/logstash --path.config CONFIGPATH
To run Logstash by specifying the configuration directly in the command line, use the following command:
bin/logstash -e "input { stdin { type => stdin } }"
To specify the number of workers to run to process in parallel, use the following command:
bin/logstash –w 12 or bin/logstash –-pipeline.workers 12
The default value is 8.
To specify the maximum number of events a worker will connect before executing filters and output plugins, use the following...