Changes to Command Line Optionsedit
Most command line options available in Logstash Forwarder have been removed and
migrated to config file options. The only mandatory command line option for
running Filebeat is
-c followed by the path to the config file. If you used command line
options with Logstash Forwarder, make sure that you add your options to the
configuration file. For naming changes, see the section called “Renamed Optionsedit”.
Filebeat does provide command line options that are common to all Beats. For more details about
these options, see Command Line Options.
The following command line options have been renamed and moved to the config file. Also see
the section called “Changed Configuration File Optionsedit” for a list of configuration file options that were completely removed or
replaced by options specified in libbeat.
|Command Line Option||Config File Option||Description|
-c command line option and
The config option was split into two parts. You use the
-c command line option to specify the location of the base (required) config file when you start Filebeat. To use additional config files, you specify the
config_dir configuration option.
config_dir option specifies the path to the directory that contains additional configuration files. This option MUST point to a directory other than the directory where the main Filebeat config file resides.
idle_timeout was moved to the config file and removed as a flag.
spool_size was moved to the config file and removed as a flag.
harvester_buffer_size was moved to the config file and removed as a flag. You can now configure the buffer size separately for each harvester.
tail_files was moved to the config file and removed as a flag. You can now configure this option separately for each prospector.
cpuProfileFile was removed. You can use the profiling options of libbeat instead. For more details on profiling, see https://github.com/elastic/libbeat/issues/122.
quiet was removed. Libbeat is now used for logging, so you must use the libbeat logging options instead.